I have the requirement to run dummy jobs for 30 minutes and 60 minutes respectively.
I have tried with --delay 30
in command line jobs, but I did not get the expected delay.
I have the requirement to run dummy jobs for 30 minutes and 60 minutes respectively.
I have tried with --delay 30
in command line jobs, but I did not get the expected delay.
Designating a job as type ‘dummy’ will bypass anything contained within the command line field.
You have two options to create a 30/60minute timer job.
Option a:
Make the job a command line type job and put sleep 1800
or sleep 3600
in the command line field.
Option b:
Make the job a dummy type job and put sleep 1800
or sleep 3600
in either the pre-execution or post-execution fields.
By default the sleep command operates on seconds. For windows you may want to look into using the power shell version which would be powershell.exe -command start-sleep 1800
Another way to enable a waiting time, either before or after an OS-type Job is by using the pre-execution or post-execution command options, as appropriate.
The use of _sleep is more convenient because it is operating system independent and is provided by the Control-M/Agent, which means that you do not require an extra deployment for that functionality.