mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
Concurrency limit is based on a counter that increment and decrement the limit each time a flow is started and terminated. This count should always be accurate. But if some unexpected event occurs (bug or user manually do something wrong), the count may not be accurate anymore. To avoid any potential issue, when we decrement the counter, we chech that concurrency count is bellow the limit before unqueing an execution. Fixes #12031 Closes #13301