Class TaskPrefix
Collection tracking all tasks within a group
Declaration
class TaskPrefix
source linkDocumentation
Keys often have a structure like ``("x-123", 0)``
A group takes the first section, like ``"x"``
.. attribute:: name: str
The name of a group of tasks.
For a task like ``("x-123", 0)`` this is the text ``"x"``
.. attribute:: states: Dict[str, int]
The number of tasks in each state,
like ``{"memory": 10, "processing": 3, "released": 4, ...}``
.. attribute:: duration_average: float
An exponentially weighted moving average duration of all tasks with this prefix
.. attribute:: suspicious: int
Numbers of times a task was marked as suspicious with this prefix
See also
TaskGroup
Methods
@property
def active(self)
@property
def active_states(self)
@property
def duration(self)
@property
def nbytes_in_memory(self)
@property
def nbytes_total(self)
@property
def states(self)
▷ def types(self) @property