mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
fix job launch deadlock
* This both fixes the deadlock problem and a logic problem. We shouldn't set the job's job_template current_job to pending jobs.
This commit is contained in:
parent
413976f2f7
commit
668bce8212
@ -712,7 +712,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:
|
||||
if self.status != status_before and self.status != 'pending':
|
||||
self._update_parent_instance()
|
||||
|
||||
# Done.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user