Code Block |
---|
task = ecflow.Task("t2") # create a task |
...
task2.add_date( 1,2,2010 ) # day, month, year |
...
task2.add_date( 1,0,0 ) # first of each month or every year same as: 1.. |
...
task2.add_day( "monday" ) |
...
task2.add_today( 0,10 ) # hour, minute, same as today 0:10 |
...
task2.add_today( ecflow.Today( 0,59, True )) # hour, minute, relative, same as today +0:59 |
...
start = ecflow.TimeSlot(0,0) # adding a time series |
...
finish = ecflow.TimeSlot(23,0) |
...
incr = ecflow.TimeSlot(0,30) |
...
ts = ecflow.TimeSeries( start, finish, incr, True); # same as today +00:00 23:00 00:30 |
...
task2.add_today( ecflow.Today(ts) ) |
...
cron = ecflow.Cron() |
...
cron.set_week_days( [0,1,2,3,4,5,6] ) |
...
cron.set_days_of_month( [1,2,3,4,5,6] ) |
...
cron.set_months( [1,2,3,4,5,6] ) |
...
cron.set_time_series( "+00:00 23:00 00:30" ) |
...
task2.add_cron( cron ); |