https://prefect.io logo
Title
g

Ghassan Hallaq

02/16/2023, 9:13 AM
Hi, I am trying to run another flow(using run_deployment), is there is a way to track the status of it, I am not finding that in the documentation: https://docs.prefect.io/api-ref/prefect/deployments/#prefect.deployments.run_deployment
r

redsquare

02/16/2023, 9:19 AM
If you set the timeout to 0 it will return and you can use the flow run id to check the state
api_client.read_flow_run(flow_run_id)
g

Ghassan Hallaq

02/16/2023, 2:59 PM
Thanks for your answer, is there is an example for using that method.