Author Topic: Submit job blocked until specified time  (Read 1493 times)

mhenrie

  • Jr. Member
  • **
  • Posts: 5
Submit job blocked until specified time
« 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.

jburk

  • Administrator
  • *****
  • Posts: 479
Re: Submit job blocked until specified time
« Reply #1 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.