-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when setting up a flow with concurrency limits #2709
Comments
do you suggest that concurrency limits are not active when you deploy your flow from CI? what kind of CI do you use - terraform, GitHub Actions, sth else? can you provide a reproducer i.e. a specific flow for which it happened + context how exactly you deployed the flow? did you see concurrency limits being configured in the flow after deploying it from CI? it might be some issue with the trigger or some way executions are triggered that used an old version of the flow - can you validate and provide an exact flow version for which this happened? So far I couldn't reproduce with Terraform deployment of this flow: id: concurrency_limited_flow
namespace: dev
concurrency:
behavior: QUEUE # or CANCEL or FAIL
limit: 1
tasks:
- id: bash
type: io.kestra.plugin.scripts.shell.Commands
commands:
- sleep 10 |
Hello, thanks for your answer. This is my flow
For context: |
thank you! it seems that there must have been some transient issue with the revision update. Can you schedule a meeting with @Ben8t to try to reproduce live in a call? (we have no GitLab account so hard to reproduce) there is no difference between how flow metadata is stored in the backend between code deployed via CI vs. from the UI, so the only possibility seems to be with the revision that was used for that execution. |
I had a call with @Ben8t. He escalated it internally. |
I'm able to reproduce with GitLab too 👍 |
FYI, I tested only with the CLI (not GitLab) and it shows the same issue ! |
fix by #2714 |
Thanks 💪 great work. |
Explain the bug
There might be an issue with the latest Kestra release.
I modified an existing flow and added the new concurrency limits -> https://kestra.io/docs/developer-guide/concurrency.
I deployed my changes with a CI/CD pipeline https://kestra.io/docs/developer-guide/cicd.
However jobs are still able to start concurrently and the job definition is up to date in the UI.
After making a misc change in the flow and saving it, then the concurrency limit was enforced.
I have been able to reproduce this bug two times on two different deployments of Kestra.
Environment Information
The text was updated successfully, but these errors were encountered: