ecflow.Limit

class ecflow.Limit

Bases: instance

limit provides a simple load management

i.e. by limiting the number of tasks submitted by a server. Limits are typically defined at the suite level, or defined in a separate suite, so that they can be used by multiple suites. Once a limit is defined in a suite definition, you must also assign families/tasks to use this limit. See inlimit and ecflow.InLimit

Constructor:

Limit(name,value)
   string name: the name of the limit
   int   value: The value of the limit

Usage:

limit = Limit('fast', 10)
 ...
suite = Suite('s1',
              Limit('slow',10))  # create Limit in Node constructor
suite.add_limit(limit)           # add existing limit using function
Limit.decrement((Limit)arg1, (int)arg2, (str)arg3) None :

used for test only

Limit.increment((Limit)arg1, (int)arg2, (str)arg3) None :

used for test only

Limit.limit((Limit)arg1) int :

The max value of the limit as an integer

Limit.name((Limit)arg1) str :

Return the limit name as string

Limit.node_paths((Limit)arg1) list :

List of nodes(paths) that have consumed a limit

Limit.value((Limit)arg1) int :

The limit token value as an integer