https://prefect.io logo
g

Gabriel Milan

02/24/2022, 5:02 PM
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

Kevin Kho

02/24/2022, 5:04 PM
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

Gabriel Milan

02/24/2022, 5:05 PM
awesome! thank you very much!
4 Views