How to access runtime information
Use the prefect.runtime
module to access runtime information from within a workflow.
The value of flow_run.name
will change between workflow runs to match the name of the flow run.
Attributes of prefect.runtime
are None
if a value is not available
Attributes of prefect.runtime
will never error when accessed. If a value is not available, the attribute will be None
.
See the prefect.runtime
module reference for all available attributes.