Class TaskPrefix

Collection tracking all tasks within a group

Declaration

class TaskPrefix
source link

Documentation

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