From ec8e72df7a9b04a3e5977cf23b12ba1fdf8a1f57 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Mon, 21 Nov 2016 18:28:32 -0800 Subject: Don't process/queue children not matched It seems like children that are unmatched are still submitted onto the queue (and then they don't do anything) when we can just avoid that processing in the first place by just not submitting them in the first place. Change-Id: I5d576faab25b3a47b395b9f627b131370d31e191 --- kolla/image/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kolla/image/build.py b/kolla/image/build.py index f84193be5..3816fc8e4 100755 --- a/kolla/image/build.py +++ b/kolla/image/build.py @@ -266,6 +266,8 @@ class BuildTask(DockerTask): ]) if self.image.children and self.success: for image in self.image.children: + if image.status == STATUS_UNMATCHED: + continue followups.append(BuildTask(self.conf, image, self.push_queue)) return followups -- cgit v1.2.3