From 774a310e103f5d002598e2eab0c939e8252eb5c1 Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Wed, 21 Aug 2019 16:09:07 -0700 Subject: [PATCH] Don't collect job_host_summaries if job is running --- awx/main/models/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/jobs.py b/awx/main/models/jobs.py index 0e0e495a00..7a48defb19 100644 --- a/awx/main/models/jobs.py +++ b/awx/main/models/jobs.py @@ -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)