mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 20:50:06 -03:30
Split reaper for running and waiting jobs
Avoid running jobs that have already been reapted Co-authored-by: Elijah DeLee <kdelee@redhat.com> Remove unnecessary extra actions Fix waiting jobs in other cases of reaping
This commit is contained in:
@@ -500,7 +500,7 @@ class TestGenericRun:
|
||||
with pytest.raises(Exception):
|
||||
task.run(1)
|
||||
|
||||
for c in [mock.call(1, status='running', start_args=''), mock.call(1, status='canceled')]:
|
||||
for c in [mock.call(1, start_args='', status='canceled')]:
|
||||
assert c in task.update_model.call_args_list
|
||||
|
||||
def test_event_count(self, mock_me):
|
||||
|
||||
Reference in New Issue
Block a user