Hi,
There are 2 jobs A and B.
Job B is dependent on completion of Job A.
But Job B should start only after 30 minutes of completion of Job A.
Any Suggestions.
Delay Execution of Job B 30 minutes on completion of Job A.
I am not sure if this is the only way, but this might work.
Schedule a dummy job in between Job A and Job B, such that,
When Job A completes fine, it triggers the DUMMY job, and since its a dummy it would end OK, in the steps tab of the DUMMY job mention,
On Stmt* Code OK
Do Rerun
On Stmt * Code RUNCOUNT>1
Do Condition Name = TriggerjobB (or what ever the condition name you have in Job B's incondition)
In the Execution Tab of the DUMMY mention the RERUN counter as Rerun every 30 mins from jobs END.
How this would help i believe, is the Job A would trigger DUMMY when it completes fine and DUMMY would run immediately and complete fine, and then Do RERUN after 30 mins.
30 mins later the second run would start and complete fine, and since the RUNCOUNT would be 2 which is greater than 1, it will trigger the job B.
When it goes for the second run the 30 minute timer would have elapsed and so it would be fine for JobB to run then.
NOTE: I haven't tested this yet, but this is what popped up in my mind as soon as I read your question. I can think on this more if this solution doesn't work.
Schedule a dummy job in between Job A and Job B, such that,
When Job A completes fine, it triggers the DUMMY job, and since its a dummy it would end OK, in the steps tab of the DUMMY job mention,
On Stmt* Code OK
Do Rerun
On Stmt * Code RUNCOUNT>1
Do Condition Name = TriggerjobB (or what ever the condition name you have in Job B's incondition)
In the Execution Tab of the DUMMY mention the RERUN counter as Rerun every 30 mins from jobs END.
How this would help i believe, is the Job A would trigger DUMMY when it completes fine and DUMMY would run immediately and complete fine, and then Do RERUN after 30 mins.
30 mins later the second run would start and complete fine, and since the RUNCOUNT would be 2 which is greater than 1, it will trigger the job B.
When it goes for the second run the 30 minute timer would have elapsed and so it would be fine for JobB to run then.
NOTE: I haven't tested this yet, but this is what popped up in my mind as soon as I read your question. I can think on this more if this solution doesn't work.
Thanks!Winsome
You can use the PRECMD or POSTCMD.
You can at the end of the jobA, put in the set panel:
POSTCMD=sleep 180
Or you can put in the jobs B:
PRECMD=sleep 180.
So the second jobs starts only in the first is ended and the first thing it do is wait 30 seconds.
Regards
You can at the end of the jobA, put in the set panel:
POSTCMD=sleep 180
Or you can put in the jobs B:
PRECMD=sleep 180.
So the second jobs starts only in the first is ended and the first thing it do is wait 30 seconds.
Regards
Last edited by mauriziog on 25 Jan 2013 11:24, edited 1 time in total.
- sophiawhite
- Nouveau
- Posts: 1
- Joined: 23 Feb 2013 12:00
- Contact:
Well that is alright , just finished the A after compilation, start B. I don't think so there is no "Rocket Science".
IT Support London
IT Support London
Recently all gone well.
____________________________________
wow gold|diablo 3 gold|Defiance Scrip|GW2 Gold
____________________________________
wow gold|diablo 3 gold|Defiance Scrip|GW2 Gold