Job events

Top  Previous  Next

Job events are caused by the execution of jobs and by their return codes. A job execution may be conditioned depending of the execution and eventually on the result, of other jobs.

When requiring job events a time range must be provided. The time range specifies the time interval for the condition: only if the condition specified is always true in the time range provided, the job is executed.

In order to require job event conditioning for a certain job the wait_event job tag have to be used. I.e.

Time range may be specified requiring:

submit

time range starts from the job submition time 

today

time range starts from the 0:00 AM of the current day 

reset

time range starts from the last issue of xbmc reset command

hh:mm

time range starts from specified hour

 

I.e.:

#!/bin/csh
#
#@xbm wait job JOB01.csh since reset
#@xbm wait job JOB02.csh since today rc = 0
#@xbm wait job JOB03.csh since 15:30 max <= 12 and min >=4
#

In the sample above, job will start if:

JOB01.csh has run one or more time, since last reset command
JOB02.csh has run one or more time, always returning a return code equal 0 (zero), since the 0:00 AM
JOB03.csh has run one or more time, always returning a maximum return code less equal 12 and a minimum return code greater equal to 4, since 15:30