Workflow sharing concurrency group cancelled instead of pending #32376
Replies: 6 comments
-
I see the same problem. Can someone reply on this? It's been 10 months since the original message. |
Beta Was this translation helpful? Give feedback.
-
More than a year later and problem still persists. Can someone, please, take a look into it? It's obviously a bug. |
Beta Was this translation helpful? Give feedback.
-
I too was surprised to discover that jobs in the same concurrency group are canceled instead of waiting for an existing job within the group to finish. I can see why canceling is a desired behavior for some, but at least it should be made configurable. I want to avoid running several jobs of a certain kind concurrently, but I would like them all to complete at one point; effectively putting each job within the same concurrency group in a single-line FIFO queue. |
Beta Was this translation helpful? Give feedback.
-
Did you try setting |
Beta Was this translation helpful? Give feedback.
-
ProblemRight now if I run 3 jobs about 5 seconds apart with the same concurrency group the following will happen: Start Job 1:
Start Job 2:
Start Job 3:
Proposed FixI think there should be an additional setting For example, I'm using github actions with the workflow_dispatch event. All the jobs still need to run so adding a new one shouldn't cancel the other pending ones out. |
Beta Was this translation helpful? Give feedback.
-
Wish this was indicated somewhere as it took me forever to debug this - why would there be only 1 pending job slot? One way to get around this limitation is to use self hosted runners with unique labels which forces hard concurrency instead: Then lock each job to a specific runner:
Now all jobs will queue infinitely waiting for the right actions worker to free up. Note that |
Beta Was this translation helpful? Give feedback.
-
I have two workflows sharing concurrency group:
and:
The second job has been cancelled:
despite the fact the documentation says default behavior is to put workflow in a pending state, not cancelling:
Why this happens?
Beta Was this translation helpful? Give feedback.
All reactions