<@ULVA73B9P> is it possible to increase the limit ...
# ask-marvin
c
@Marvin is it possible to increase the limit of a deployment while its running?
m
No, it is not possible to increase the concurrency limit of a deployment while it is actively running in Prefect. Concurrency limits for flow runs are typically set at the deployment, work pool, or work queue level. These limits can be configured through the Prefect CLI or API, but changes to these settings will not affect currently running deployments. They will only apply to future runs. For more information, you can refer to the Prefect documentation on task run limits.
c
@Marvin would it make sense for me to pause the currently running flow runs, then restart the deployment with a higher limit? will the paused flow runs automatically restart?
m
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.