Schedule

class iceprod.server.schedule.Scheduler(io_loop=None)[source]

Schedules future tasks based on time. Uses a threadpool to execute tasks.

MAXWAIT = 60
run(*args, **kwargs)[source]

run the scheduler

start()[source]
schedule(cron, task, oneshot=False)[source]

Add event to schedule

static parsecron(cron, prevtime, new=False)[source]

Find next time based on cron string and previous time.

The cron string format is based on the Google schedule format:

("every"|ordinal) [N] (hours|mins|minutes|days) ["of" (monthspec)] (time|["from" (time) "to" (time)]|"synchronized")
Parameters:
  • cron – String with scheduling info in an English-like format.
  • prevtime – last runtime or now.
  • new – if this is the first run, set to True.