Join Slack
Powered by
hey everyone, how can I get the flow run id of the...
# ask-community
s
soner
03/01/2022, 11:50 PM
hey everyone, how can I get the flow run id of the current flow that is running in flow definition?
a
Anna Geller
03/02/2022, 12:02 AM
You can grab it from the context:
Copy code
prefect.context.get("flow_run_id")
But note that this is populated only when you trigger flow run via backend (e.g. via UI/API/on schedule), not for local flow run
🙏 1
16
Views
Open in Slack
Previous
Next