prefect.utilities
context
prefect.utilities.context
Functions
temporary_context
get_task_run_id
get_flow_run_id
get_task_and_flow_run_ids
Get the task run and flow run ids from the context, if available.
Returns:
- tuple[Optional[UUID], Optional[UUID]]: a tuple of the task run id and flow run id