DONT run job if previous is runnig ...

nnCron and nnCron LITE discussion

DONT run job if previous is runnig ...

Postby CoolTom » Fri, 01 Dec 2006, 15:05

Hi i m using LITE version. Is it possible set this?
ex: i m running directory sync every 15min. It start at 0:15 0:30 .... but when it take long than 15min than will run twice, when more than 45min than fourtimes ...
Isnt possible set: when is this task still running dont start it again till it finish?

ex: sync task start at 0:00 and it take 50 minutes
0:00 - start
0:15 - still running from 0:00 so dont start it
0:30 - still running from 0:00 so dont start it
0:45 - still running from 0:00 so dont start it
1:00 - finish? ok, start

thanx for help
CoolTom
 
Posts: 2
Joined: Fri, 01 Dec 2006, 14:36

Postby Valery_Kondakoff » Fri, 01 Dec 2006, 15:12

It is possible to write a nnCron LITE plugin (using FORTH language) with this functionality, but this is not very easy. So, the quick answer: this is impossible, unless you are FORTH programmer.

On the other hand, this functionality is included in nnCron (not the LITE one). Just add the SingleInstance option to your task. http://www.nncron.ru/help/EN/commands/t ... leInstance
CU
VK
User avatar
Valery_Kondakoff
Site Admin
 
Posts: 769
Joined: Thu, 01 Jul 2004, 20:49
Location: Moscow, Russia

Postby CoolTom » Fri, 01 Dec 2006, 15:20

Thanx for fast answer!
Any FORTH language programmer here? 0:-) :wink:
CoolTom
 
Posts: 2
Joined: Fri, 01 Dec 2006, 14:36


Return to nnCron forum (English)

Who is online

Users browsing this forum: No registered users and 1 guest