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


tofferr
2008-08-22T23:03:54Z
I have several tasks that will take a few hours to run whether they run at the same time or sequentially, so, I would like to run them at the same time.

Is this possible with VisualCron?

Thanks,
Chris
Sponsor
Forum information
tofferr
2008-08-22T23:42:30Z
I see there is a checkbox at the Job level for "Run tasks in order". In my case I have a number of tasks that I need to run in order, then quite a few that run at the same time, then again some more to run in order. I suppose I can make 3 separate jobs out of these and then link them somehow, right?
Support
2008-08-23T21:56:30Z
Yes, you can link them by using the VisualCron Trigger and trigger on completed event. Remember that this can be hard to follow and debug.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
tofferr
2008-08-23T22:26:23Z
I did this, but did not include the trigger, which I think was my mistake. In my main job I put in a Run Job task. That task ran, but the next task ran immediately. I do not have any "conditions" yet. The task immediately following the Run Job task in an email notification... should I set up a Condition on the email notification saying that the previous task is not running? I'm guessing that might not work, since the previous task looks like it has completed, even though the job it started is still running.

Could you tell me a bit more about how to setup the VisualCron trigger?

Thanks,
Chris
Support
2008-08-26T16:25:04Z
You click on Triggers->Event trigger->VisualCron. Select a Job that you are waiting for to complete. Click the "on completed" checkbox and add the trigger.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
tofferr
2008-08-27T18:54:18Z
Henrik,

Thank you for the response. I did find that. When I asked the question I couldn't find the trigger because I was looking at the next task that I wanted to run - and tasks don't have triggers.

So what I ended up doing is creating 3 jobs: Job 1 starts everything, Job 2 contains my tasks to run in parallel, and Job 3 wraps things up. Job 1 ends with a task that starts Job 2. Job 3 is started by a trigger that sees the end of Job 2.

Originally I tried to make it work with 2 jobs - 1 for all the sequential tasks, and 1 for the parallel tasks. The problem was that when I called Job 2 from Job 1 it immediately went to the next task, it did not wait for Job 2 to finish. This seems like an odd limitation to me. Maybe I didn't use the task to call Job 2 correctly?

Thanks,
Chris
Scroll to Top