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


rloesche
2010-07-11T22:13:28Z
VC5.5
I'm new to VC - so my question might be stupid

I have three jobs that need to run in order: Job1 -> Job2 ->Job3. My idea was to put these jobs in another job called job0 and start the tree jobs with the startJob task like so:

job0.task1 = job1
job0.task2 = job2
job0.task3 = job3

starting the jobs works - but all three jobs are started at once without waiting for their predecessors to finish. It looks like starting jobs is asynchronous.

What is the right way of doing this ?

( I tried using conditions, but did not manage to )

thanx

Sponsor
Forum information
J Kruger
2010-07-12T11:22:17Z
What about creating a job with several tasks - the tasks will run in the order you set them to.
rloesche
2010-07-12T11:53:20Z
I started with such a setup - and it works. problem is that i need the single jobs and the combined job. i would need to duplicate a lot of steps just to get the effect.
Support
2010-07-12T13:14:41Z
You can add the Job/Task control Task to run the other Job in the end. Or you can use the VisualCron Trigger to run the Job when another is complete.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rloesche
2010-07-12T15:36:41Z
i tested both proposals - both work.

but still - they both leave me with 3 jobs that depend on each other. i cannot simply use one of them independently of the others: whenever i start job1 it will trigger job2 and job3. i would need to change something in the definition of the job,whenever i want to use it without firing the others.

are there any other thoughts ?

Support
2010-07-12T18:44:16Z
The main problem is that the VisualCron Task is asynchronous and do not wait for Jobs to complete. Otherwise you could just create 3 of these Tasks in a second Job that launches every Job after each other.

In your case you want to request a synchronous alternative, so the Tasks does not complete until Job is complete.

However, you could still use the above approach and add some Conditions that check if the the specific Job is complete, otherwise Wait for a minute.

We will investigate the synchronous alternative which would make it a bit easier.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2010-07-13T16:21:10Z
Please try this version:

http://neteject.com/down...on/VisualCron5.6.3-6.exe 

We have added some options on the Job/Task Control Task to wait for completion. Now, create one Job with 3 Job/Task Control Tasks.

Please get back to us if this solves the problem.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
rloesche
2010-07-17T16:02:09Z
I'm impressed. thanx a lot
rloesche
2010-07-17T17:15:45Z
I just upgraded to the new version - no problems - and the jobs run synchronously.

That solves my problem.

Thanks
Scroll to Top