from ecflow import Defs,Suite,Task,Trigger,Complete defs = Defs() s1 = defs.add_suite("s1") t1 = s1.add_task("t1") t2 = s1.add_task("t2") t2.add_trigger( "t1 == active and t3 == aborted" ) t2.add_complete( "t3 == complete" ) t3 = s1.add_task("t3")
Please go to https://ecflow.readthedocs.io/en/latest/index.html
from ecflow import Defs,Suite,Task,Trigger,Complete defs = Defs() s1 = defs.add_suite("s1") t1 = s1.add_task("t1") t2 = s1.add_task("t2") t2.add_trigger( "t1 == active and t3 == aborted" ) t2.add_complete( "t3 == complete" ) t3 = s1.add_task("t3")