Channels
announcements
ask-marvin
best-practices-coordination-plane
data-ecosystem
data-tricks-and-tips
events
find-a-prefect-job
geo-bay-area
geo-berlin
geo-boston
geo-chicago
geo-colorado
geo-dc
geo-israel
geo-japan
geo-london
geo-nyc
geo-seattle
geo-texas
gratitude
introductions
marvin-in-the-wild
pacc-clearcover-june-12-2023
pacc-may-31-2023
ppcc-may-16-2023
prefect-ai
prefect-aws
prefect-azure
prefect-cloud
prefect-community
prefect-contributors
prefect-dbt
prefect-docker
prefect-gcp
prefect-getting-started
prefect-integrations
prefect-kubernetes
prefect-recipes
prefect-server
prefect-ui
random
show-us-what-you-got
Powered by
Title
a
Adam Roderick
02/28/2020, 11:32 PM
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
Dylan
02/28/2020, 11:35 PM
Hey Adam, I’m out of pocket at the moment but I believe the flow run ID is in
prefect.co
ntext
If that’s accessible from the state handler
a
Adam Roderick
02/28/2020, 11:35 PM
Thanks!
prefect.context is accessible. I see no flow_run_id, so I assume that is only available when running in cloud
d
Dylan
02/28/2020, 11:36 PM
https://docs.prefect.io/api/latest/utilities/context.html#context-2
Yes, I believe that’s correct
a
Adam Roderick
02/28/2020, 11:36 PM
Perfect. Thanks again. Looks right
👍 1
#prefect-community
Join Slack