Class TaskGroup

Collection tracking all tasks within a group

Declaration

class TaskGroup
source link

Documentation

Keys often have a structure like ``("x-123", 0)``
A group takes the first section, like ``"x-123"``

.. attribute:: name: str

   The name of a group of tasks.
   For a task like ``("x-123", 0)`` this is the text ``"x-123"``

.. attribute:: states: Dict[str, int]

   The number of tasks in each state,
   like ``{"memory": 10, "processing": 3, "released": 4, ...}``

.. attribute:: dependencies: Set[TaskGroup]

   The other TaskGroups on which this one depends

.. attribute:: nbytes_total: int

   The total number of bytes that this task group has produced

.. attribute:: nbytes_in_memory: int

   The number of bytes currently stored by this TaskGroup

.. attribute:: duration: float

   The total amount of time spent on all tasks in this TaskGroup

.. attribute:: types: Set[str]

   The result types of this TaskGroup

See also
--------
TaskPrefix

Methods