1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

fix 2 data source inconcistency with failing tasks

* Do not "trust" the list of celery ids for database entries that were
modified after the list of celery ids was gotten.
* err on the side of caution and just let the next heartbeat celery
killer try killing the task if it needs to be reaped.
This commit is contained in:
Chris Meyers 2017-07-05 12:08:31 -04:00 committed by Matthew Jones
parent 5b9a0b504a
commit aeb7119796

View File

@ -57,5 +57,3 @@ def run_fail_inconsistent_running_jobs():
all_running_sorted_tasks = scheduler.get_running_tasks()
scheduler.process_celery_tasks(celery_task_start_time, active_tasks, all_running_sorted_tasks)