1
0
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:
Jim Ladd 2019-08-21 16:09:07 -07:00
parent c8805cc55b
commit 774a310e10

View File

@ -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)