Hello! Is it possible to retrieve the flow run ID ...
# ask-community
g
Hello! Is it possible to retrieve the flow run ID from the
Flow
or
State
objects? I'm trying to get it using the
on_failure
callback for my flow
k
Hey @Gabriel Milan, just use
prefect.context.get("flow_run_id")
. You can pull a lot of things from context. There is a full list here
g
awesome! thank you very much!