Join Slack
Powered by
Hi, I am trying to run another flow(using run_depl...
# ask-community
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
redsquare
02/16/2023, 9:20 AM
Copy code
api_client.read_flow_run(flow_run_id)
redsquare
02/16/2023, 9:20 AM
https://docs.prefect.io/api-ref/orion/api/flow_runs/#prefect.orion.api.flow_runs.read_flow_run
g
Ghassan Hallaq
02/16/2023, 2:59 PM
Thanks for your answer, is there is an example for using that method.
r
redsquare
02/16/2023, 3:01 PM
https://prefect-community.slack.com/archives/CL09KU1K7/p1675973663472939?thread_ts=1675973176.819379&cid=CL09KU1K7
Open in Slack
Previous
Next