Code Block | ||
---|---|---|
| ||
deom ecflpw import Defs,Suite,Task,Limit,InLimit defs = Defs() s1 = ecflowdefs.Suiteadd_suite("s1"); s1.add_limit( "limitName4", 10 ) # name, maximum token f1 = ecflows1.Familyadd_family("f1") f1.add_inlimit( "limitName4","/s1/f1",2) # limit name, path to limit, tokens consumed for i in range(1,4): f1.add_task( "t{}".format(i)) |