mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 06:51:10 +03:00
Don't collect job_host_summaries if job is running
This commit is contained in:
parent
c8805cc55b
commit
774a310e10
@ -670,7 +670,7 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
|||||||
data = super(Job, self).notification_data()
|
data = super(Job, self).notification_data()
|
||||||
all_hosts = {}
|
all_hosts = {}
|
||||||
# NOTE: Probably related to job event slowness, remove at some point -matburt
|
# NOTE: Probably related to job event slowness, remove at some point -matburt
|
||||||
if block:
|
if block and self.status != 'running':
|
||||||
summaries = self.job_host_summaries.all()
|
summaries = self.job_host_summaries.all()
|
||||||
while block > 0 and not len(summaries):
|
while block > 0 and not len(summaries):
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user