Class get_task_metadata

Collect task metadata within a context block

Declaration

class get_task_metadata
source link

Documentation

This gathers ``TaskState`` metadata and final state from the scheduler
for tasks which are submitted and finished within the scope of this
context manager.

Examples

>>> with get_task_metadata() as tasks:
...     x.compute()
>>> tasks.metadata
{...}
>>> tasks.state
{...}

Methods

Reexports