From 08825a1f4998a38473ba8b6775bdd9f8dcdd7d99 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Thu, 23 Feb 2017 15:09:50 -0500 Subject: [PATCH] fix check running status --- awx/main/scheduler/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/scheduler/__init__.py b/awx/main/scheduler/__init__.py index 8d29f0010c..a48ca3ad23 100644 --- a/awx/main/scheduler/__init__.py +++ b/awx/main/scheduler/__init__.py @@ -373,7 +373,7 @@ class TaskManager(): # list of task id's from celery and now. # Note: This is an actual fix, not a reduction in the time # window that this can happen. - if task_obj.status is not 'running': + if task_obj.status != 'running': continue task_obj.status = 'failed' task_obj.job_explanation += ' '.join((