Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Cron2250
2011-08-18T21:17:18Z
It's pretty simple to prevent a new task from being launched if one task (or even a list of specific tasks) is already running, but what about a certain number of a given task?
Sponsor
Forum information
Support
2011-08-18T21:24:41Z
Hi,

not right now, I am moving this topic to Feature requests forum.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Cron2250
2014-04-24T02:58:00Z
Originally Posted by: Support 

Hi,

not right now, I am moving this topic to Feature requests forum.



I couldn't find this in the Features Forum, but I was wondering if anything has happened to this request in the past couple of years? More specifically, is there a variable that would return the number of running instances of a given job or task? If so, I'm thinking that could be used in a conditional task to stop the job if it has already launched enough tasks.

The ultimate goal here is to have a job that continuously keeps a certain number of instances of itself running.
ErikC
2014-04-24T06:34:35Z
Hi,

There is a way to do this now, but's not so nice.
Just use an user variable (int) and add one to in every job as the 1st task.
The last task in every job should substract one from it.
Using a condition on every job you can check this user variable and exit a job if the amount is exeeding a threshold.

Every job should run nicely so the counter stays correct.

But why limit the amount of running jobs?

regards,
Erik
Uses Visualcron since 2006.
Scroll to Top