Jeff Garcia
09/10/2025, 12:27 PMConcurrency lease renewal failed - slots are no longer reserved. Terminating execution to prevent over-allocation.
The first time I saw this there was an outage on the prefect status page having to do with concurrency so I thought it was related to this. But this happened last night and the status page shows nothing. What is this?Marvin
09/10/2025, 12:27 PMMarvin
09/10/2025, 12:33 PMPREFECT_LOGGING_LEVEL=DEBUG
- If you self-host, also look at API server logs around the same timestamps for lease renewals.
Mitigations and next steps
- If you can, temporarily disable the relevant concurrency rule(s) on this deployment to verify the root cause. If the failures disappear, it’s almost certainly lease renewal timing.
- Ensure the runner/worker environment is healthy:
- No CPU throttling or OOM kills
- Stable network/DNS to the Prefect API
- System time synced (e.g., NTP)
- Upgrade your worker/runtime to the latest Prefect 3.x patch (we continually harden concurrency/runner behavior). Release notes: Prefect releases
- Increase visibility:
- Run with DEBUG logging as above.
- If you’re on Kubernetes, check for restarts/retries and resource throttling.
- If you must keep concurrency limits but this is happening intermittently, you can:
- Reduce environmental causes (network/CPU) as above.
- Consider relaxing how broadly/strictly rules apply (e.g., narrower tags) so fewer contracts are active.
- As a short-term workaround for validation, run a few times without the rule to confirm the error disappears.
A few questions to help us pinpoint it:
- Are you on Prefect Cloud or self-hosted Server?Marvin
09/10/2025, 12:33 PMBring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by