...
Code Block | ||
---|---|---|
| ||
from ecflow import Defs,Suite,Family,Task,RepeatDay,RepeatEnumerated,RepeatString,RepeatInteger,RepeatDateList
def add_tasks(fam):
for i in range(1,3):
fam.add_task(Task("t{}".format(i)))
defs = Defs()
s1 = defs.add_suite("s1")
f1 = s1.add_family("f1")
f1.add_repeat( RepeatDate("YMD",20100111,20100115,2) )
add_tasks(f1)
f2 = s1.add_family("f2")
f2.add_repeat( RepeatInteger("count",0,100,2) )
add_tasks(f2)
f3 = s1.add_family("f3")
f3.add_repeat( RepeatEnumerated("enum",["red", "green", "blue" ] ) )
add_tasks(f3)
f4 = s1.add_family("f4")
f4.add_repeat( RepeatString("enum",["a", "b", "c" ] ) )
add_tasks(f4)
f5 = s1.add_family("f5")
f5.add_repeat( RepeatDay(1) )
add_tasks(f5)
f6 = s1.add_family("f6")
f6.add_repeat( RepeatDateList("YMD",[20130101, 20130102, 20130103 ]) ) # arbitary date list
add_tasks(f6)
|
...