prefect.runtime.task_run
Access attributes of the current task run dynamically.
Note that if a task run cannot be discovered, all attributes will return empty values.
You can mock the runtime attributes for testing purposes by setting environment variables
prefixed with PREFECT__RUNTIME__TASK_RUN.
Available attributes:
id: the task run’s unique IDname: the name of the task runtags: the task run’s set of tagsparameters: the parameters the task was called withrun_count: the number of times this task run has been runtask_name: the name of the task