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


Jake Colman
2014-02-07T03:48:32Z
I have a job that is set to execute every 15 minutes. I'm not sure how long the job will take and need to ensure that I do not get two instances of that job. How can I do one of the following:

1) Specify that the job runs 15 minutes after the previous job ended
2) If the job did not complete in its 15 minute time slot, the job will not begin until the the first one finishes.

Thanks.
Sponsor
Forum information
Support
2014-02-07T07:38:30Z
By default we are preventing a Job from starting if it is already running (main settings of Job). If you need a 15 min space you could add a Wait Task, waiting for 15 minutes.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Jake Colman
2014-02-07T12:28:19Z
Originally Posted by: Support 

By default we are preventing a Job from starting if it is already running (main settings of Job). If you need a 15 min space you could add a Wait Task, waiting for 15 minutes.



Thanks for the quick reply.

This is a poller task that needs to poll for work every 15 minutes. My problem is that I cannot guarantee that it will complete all its work within 15 minutes and I cannot have a second instance of the poller running at the same time since they will step on each other. How do I set up a job in visual cron that will execute every 15 minutes unless it is still running? And if Visual Cron will simply not restart an already running job, what will it do when the running job completes 20 minutes after it started?
Support
2014-02-07T13:29:42Z
You have two options by default. Either ignore the Job that is being triggered if it is already running or put it in queue.

If you ignore it it will be run the next 15 minutes (if not still running then, then it will be postponed another 15 minutes).

If you put it in queue it will run right after first Job is completed.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top