changes.mady.by.user Unknown User (ma0)
Saved on Dec 15, 2017
...
from ecflow import * defs = Defs() + Suite("s1") defs.s1 += [ Task("t1"),Task("t2"),Task("t3"),Task("t4") ] defs.s1.t2 += Trigger( "t1 == complete" ) defs.s1.t3 += Trigger( "t2 == complete" ) defs.s1.t4 += Trigger( "t3 == complete" )
from ecflow import * defs = Defs() + Suite("s1") defs.s1 += [ Task("t1"),Task("t2"),Task("t3"),Task("t4") ] defs.s1.t2 += Trigger( ["t1"] ) defs.s1.t3 += Trigger( ["t2"] ) defs.s1.t4 += Trigger( ["t3"] )
from ecflow import * defs = Defs() + (Suite("s1") + defs.s1 >> Task("t1") >> Task("t2") >> Task("t3") >> Task("t4")) # >> relies on the leading node to be a Family or Suite