Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
titleAdd Limits/Inlimits
from ecflow import Defs,Suite,Task,Limit,InLimit

defs = Defs()
defs   += Suite("s1",
           Limit("limitName4", 10),              # name, maximum token
           Family("f1",
               InLimit("limitName4","/s1/f1",2), # limit name, path to limit, tokens consumed
               [ Task("t{0}".format(t)) for t in range(1,4) ] ))

...