PipelineFX Forum

Qube! => General => Topic started by: mhenrie on October 01, 2013, 05:41:16 PM

Title: Submit job blocked until specified time
Post by: mhenrie on October 01, 2013, 05:41:16 PM
Is there any way to submit a job as blocked and have the supervisor unblock it at it a specific time?  This would be a nice built-in feature if not.
Title: Re: Submit job blocked until specified time
Post by: jburk on October 01, 2013, 08:32:05 PM
If I recall correctly, Laika's job submission classes have a waitForTime() method, which add a callback

Code: [Select]
'triggers': "dummy-time-self-%d" % startSec,
'language': 'qube',
'code': 'unblock-self'

where startSec is the number of seconds since the beginning of the unix epoch, minus the qb.QB_TIME_EPOCH_OFFSET value.