mirror of
https://github.com/ansible/awx.git
synced 2026-01-29 15:24:42 -03:30
Currently SCHEDULE_MAX_JOBS+1 can be scheduled rather than SCHEDULE_MAX_JOBS. This is due to the fact that we using strictly greater rather than greater or equal. Imagine we set SCHEDULE_MAX_JOBS=1, current logic: * First time (count = 0), count < 1 -> proceed * Second time (count = 1), count =< 1 -> proceed * Third time (count = 2), count > 1 -> prevented Imagine we set SCHEDULE_MAX_JOBS=1, new logic: * First time (count = 0), count < 1 -> proceed * Second time (count = 1), count =< 1 -> prevented Signed-off-by: Yanis Guenane <yguenane@redhat.com>