mirror of
https://github.com/ansible/awx.git
synced 2024-10-30 22:21:13 +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()
|
||||
all_hosts = {}
|
||||
# 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()
|
||||
while block > 0 and not len(summaries):
|
||||
time.sleep(1)
|
||||
|
Loading…
Reference in New Issue
Block a user