https://prefect.io logo
#prefect-community
Title
# prefect-community
h

Hemabh Kamboj

06/17/2022, 9:15 PM
Hi folks, Is there a way to get meta of flow run ( like, flow run name, started time etc.) inside the flow run. For example, few of my task inside the flow run inserts data in a database, so for monitoring and logging purpose I want to map flow run to those inserts, so think of like adding few columns to the table in db, named
prefect_flow_run_id
and
prefect_flow_version
and inserting those params in the db
t

Tyler Rouze

06/17/2022, 9:38 PM
I think you're looking for: Context | Prefect Docs You could build a task that connects to your db and inserts these values during the run
💯 2
h

Hemabh Kamboj

06/21/2022, 10:44 AM
yes, thanks!
👍 1
7 Views