How to start a dependent job after a defined delay ?

Document ID : KB000029752
Last Modified Date : 14/02/2018
Show Technical Document Details

We would like to condition the start of a job so that :

Job1 runs at a variable time and finishes at a variable time as well.

Job2 must run five minutes after Job2 has completed with success.


How can we get the extra condition of getting Job2 to run some time after the first one has completed?

The solution is to use a command job with the required delay which will be triggered by success of the Job1.

While Job2 will be triggered by that command job's success.


The command job will run a sleep for the number of seconds you would like to delay the start of Job2 after Job1 success :


insert_job : job1

job_type : c

command: ls

machine: localhost

condition : ....


insert_job : job12

job_type : c

command: sleep 300

machine: localhost

condition: success(job1)


insert_job : job2

job_type : c

command: sleep 60

machine: localhost

condition: success(job12)