hey everyone, how can I get the flow run id of the...
# ask-community
s
hey everyone, how can I get the flow run id of the current flow that is running in flow definition?
a
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