From 7fda3c065832a81d38e08481dcf5a089dfd1dc60 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Thu, 6 Jul 2017 11:13:12 -0400 Subject: [PATCH] back out thought to cause deadlock scenario --- awx/main/models/unified_jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py index e9a4f00c91..a763239d15 100644 --- a/awx/main/models/unified_jobs.py +++ b/awx/main/models/unified_jobs.py @@ -713,7 +713,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique result = super(UnifiedJob, self).save(*args, **kwargs) # If status changed, update the parent instance. - if self.status != status_before and self.status != 'pending': + if self.status != status_before: self._update_parent_instance() # Done.