mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
A counter allow to lock by flow which solves the race when two executions are created at the same time and the executoion_runnings table is empty. Evaluating concurrency limit on the main executionQueue method also avoid an unexpected behavior where the CREATED execution is processed twice as its status didn't change immediatly when QUEUED. Closes https://github.com/kestra-io/kestra-ee/issues/4877