We have been experimenting with the “Pause” feature for flow_runs, and they are great! Appreciate the convenient API for pausing a flow run from both in-process and out-process. What we have been trying to figure out is if there is a way to pause Flow/Deployment.
A quick background on what we are trying to do here:
If a Flow/Deployment is pause/hold:
- Flow runs of this flow should be Paused
- Scheduled flow runs from this Flow/Deployment will enter a Paused state directly from Scheduled
- Attempt to run a quick run from this deployment would fail/raise an error message in the UI
- Attempting to run this specific deployment via run_deployment() or other API calls should either create a Paused flow run or just fail.
Some background on what is our use case: we sometimes want to hold a set of Flows so that none of the will run in a 2~3 hr window, in which we can perform updates and test the external scripts/DB these flows call. More broadly, we feel it is a quite common use case to want to put some Flows/Deployments on hold/freeze, so that we can do roll-outs。