Join Slack
Powered by
What's the best practice for creating a flow run o...
# ask-community
h
Haotian Li
02/22/2023, 7:12 AM
What's the best practice for creating a flow run of a deployment in the cloud from a local python script without waiting for it to finish?
✅ 1
r
redsquare
02/22/2023, 7:24 AM
you can create a flow run by run_deployment and set the timeout to 0 so that it returns immediately
https://docs.prefect.io/api-ref/prefect/deployments/#prefect.deployments.run_deployment
✅ 1
h
Haotian Li
02/22/2023, 7:39 AM
Thanks!
👍 1
Open in Slack
Previous
Next