...
Code Block | ||||
---|---|---|---|---|
| ||||
from ecflow import Defs,Suite,Task,Limit,InLimit defs = Defs() s1defs += defs.add_suiteSuite("s1") s1.add_limit( , Limit("limitName4", 10 ) ,# name, maximum token f1 = s1.add_family Family("f1") f1.add_inlimit( , InLimit("limitName4","/s1/f1",2), # limit name, path to limit, tokens consumed for i in range(1,4): [ f1.add_taskTask( "t{0}".format(it)) for t in range(1,4) ] )) |
The following show alternative styles that produce the same definition.
...