From aeb7119796abcd41448936371f70c2bf2884f766 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Wed, 5 Jul 2017 12:08:31 -0400 Subject: [PATCH] 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. --- awx/main/scheduler/tasks.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/awx/main/scheduler/tasks.py b/awx/main/scheduler/tasks.py index 9d51d65149..140c940924 100644 --- a/awx/main/scheduler/tasks.py +++ b/awx/main/scheduler/tasks.py @@ -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) - -