Can I access a flow's run ID from a state handler?...
# prefect-community
a
Can I access a flow's run ID from a state handler? I want to generate a URL to the logs in Prefect Cloud, and I need the run ID to do that
d
Hey Adam, I’m out of pocket at the moment but I believe the flow run ID is in prefect.context
If that’s accessible from the state handler
a
Thanks!
prefect.context is accessible. I see no flow_run_id, so I assume that is only available when running in cloud
Yes, I believe that’s correct
a
Perfect. Thanks again. Looks right
👍 1