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


bacchus
2017-02-01T19:41:03Z
So if I have Job A that is scheduled to run at 3PM and Job B that is scheduled to run at 5PM. Lets say Job A is still running at 5PM but Job B needs Job A to be finished before running.

How do I make sure Job B does not start and waits for job A to finish then kick off?

Sponsor
Forum information
Support
2017-02-02T09:52:42Z
The preferable approach would be to run B when A has completed. EIther through VisualCron Trigger in B or Job/Task control in A. Alternatively, but more error prone, you could create a Trigger dependency with Time Trigger in B and a VisualCron Trigger in B (on Job a completion).
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
bacchus
2017-02-07T23:06:41Z
What if we have ten jobs that all have one time trigger. Each job is set to run MTWTF but at a different hour. So for example, Job 1 is setup to run MTWTF at 7AM and job 2 is set to run at 8AM and job 3 is set to run at 9AM and so on. We want these jobs to wait on each other if one is still running when another is scheduled to start. So Job 1 is still running at 8AM when job 2 is scheduled to start. We want job 2 to wait and start as soon as job 1 has completed and so on.

How would this be possible?
bacchus
2017-02-09T15:40:20Z
al355
2017-02-09T16:12:49Z
Perhaps you could use a variable as a semaphore?
bacchus
2017-02-09T16:15:11Z
Originally Posted by: al355 

Perhaps you could use a variable as a semaphore?



Can you provide an example of how? We are newbies with VisualCron.
al355
2017-02-09T16:27:48Z
Do you know how to use Variables in Visual Cron?
bacchus
2017-02-09T16:29:38Z
Originally Posted by: al355 

Do you know how to use Variables in Visual Cron?



No. I haven't learned about variables yet. Is there a good place to start?
Support
2017-02-09T21:55:46Z
Look at the video tutorials as well for Variables: http://www.visualcron.com/tutorials.aspx 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
bacchus
2017-02-10T21:48:35Z
I read the documentation and watched the videos. I could still use a little help. How would you use variables to accomplish the scenarios in post 3 and is that BEST way to set it up?
bacchus
2017-02-13T20:25:36Z
Can anyone provide a quick example that I could setup on our test server?
Support
2017-02-14T19:23:57Z
I think you should test the Trigger depedency first on two Jobs.

So you have Job A.
Then on Job B you create two Triggers:
- VisualCron Trigger type to watch for completion of Job A
- Time Trigger at the time you want to run

Select both Triggers and create a dependency.

2017-02-14_2023.png
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top