https://prefect.io logo
s

Scott Zelenka

04/16/2020, 3:14 PM
When a Flow is running, is it aware of it's own flow_run_id? I have a use case where it'd be helpful to have a Flow execute a workflow, then have a final Task where it uploads the results of that Flow to an Object Store with the flow_run_id as the filename.
n

nicholas

04/16/2020, 3:27 PM
Hi @Scott Zelenka! I believe you can get the flow run id from the flow context in that final task: https://docs.prefect.io/api/latest/utilities/context.html#context