Tristan Moeller
07/31/2025, 6:37 AM"Deployment concurrency limit reached."
It runs fine and then suddenly all future flows are cancelled.
If I filter an all flows I can see nothing is running, i.e. which could block as it has taken the deployment concurrency slot.
I am struggling to find out why this is happening.
Our setup is quite simple:
concurrency_limit:
limit: 3
collision_strategy: "CANCEL_NEW"
Ideally it should cancel the running instance, but that does not seem to be an option in Prefect.Tristan Moeller
07/31/2025, 6:42 AMalex
07/31/2025, 12:28 PMTristan Moeller
07/31/2025, 12:31 PMTristan Moeller
07/31/2025, 12:33 PMalex
07/31/2025, 12:49 PMTristan Moeller
07/31/2025, 12:51 PMalex
07/31/2025, 1:01 PMTristan Moeller
07/31/2025, 1:02 PMalex
07/31/2025, 1:04 PMprefect
version you use when running flows because the client updates to maintain concurrency leases haven't been released yet. This is the PR with the updates, if you're interested.Tristan Moeller
08/06/2025, 8:31 AM"resource": {
"prefect.resource.id": "prefect.worker.kubernetes.kubernetesworker-0840632d-446d-4745-a2d7-8b255b2a1d20",
"prefect.resource.name": "KubernetesWorker 0840632d-446d-4745-a2d7-8b255b2a1d20",
"prefect.version": "3.3.6",
"prefect.worker-type": "kubernetes"
},
Do I have to update the worker as well?
They are hosted in Kubernetes, but I cannot find any reference to the prefect version.
Requirements file have:
prefect==3.4.11
Dockerfile:
FROM python:3.9-slim
...
# Install your shared requirements
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy in your flow files
COPY flows/ /app/flows/
# Make sure /app is on PYTHONPATH so you can do `import flows.flow_a` etc.
WORKDIR /app
ENV PYTHONPATH=/app
alex
08/06/2025, 11:54 AMprefect
version for concurrency leasing. Just the version in the Docker image you use to run flows should suffice