Pausing currently running flow runs and restarting the deployment with a higher limit is technically possible, but it requires manual intervention. Here's how it works:
1.
Pausing Flow Runs: You can pause a flow run, which puts it in a waiting state. However, this does not automatically restart the flow run once changes are made to the deployment. You would need to manually resume the flow run.
2.
Restarting Deployment: After pausing the flow runs, you can update the deployment with a higher concurrency limit and restart it. This change will apply to new flow runs initiated after the update.
3.
Resuming Paused Flow Runs: Paused flow runs do not automatically restart. You must manually resume them using the Prefect API or UI. You can use the
resume_flow_run
function to resume a paused flow.
For more detailed steps on pausing and resuming flow runs, you can refer to the Prefect source code documentation
here.
In summary, while it's possible to pause, update, and manually resume, it does not provide an automatic restart of paused flows with the new configuration.