From 80a90beae87c7ab30e5056099201bba1396f5597 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 14 Aug 2017 10:37:57 -0400 Subject: [PATCH] remove dead code --- awx/main/scheduler/__init__.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/awx/main/scheduler/__init__.py b/awx/main/scheduler/__init__.py index d95b981121..b81e672036 100644 --- a/awx/main/scheduler/__init__.py +++ b/awx/main/scheduler/__init__.py @@ -185,17 +185,6 @@ class TaskManager(): error_handler = handle_work_error.s(subtasks=[task_actual] + dependencies) success_handler = handle_work_success.s(task_actual=task_actual) - ''' - This is to account for when there isn't enough capacity to execute all - dependent jobs (i.e. proj or inv update) within the same schedule() - call. - - Proceeding calls to schedule() need to recontruct the proj or inv - update -> job fail logic dependency. The below call recontructs that - failure dependency. - ''' - if len(dependencies) == 0: - dependencies = self.get_dependent_jobs_for_inv_and_proj_update(task) task.status = 'waiting' (start_status, opts) = task.pre_start()