commit | 644f7c65c98e58b017dd46cc4a495f78d96aec68 | [log] [tgz] |
---|---|---|
author | Jenkins <jenkins@review.openstack.org> | Mon Feb 06 13:34:57 2017 +0000 |
committer | Gerrit Code Review <review@openstack.org> | Mon Feb 06 13:34:57 2017 +0000 |
tree | beff43ac5b6ee2eacc389c2dc871fc35b3cbb690 | |
parent | 0c14124eb6f4370c2b9910d460e1ab48e233fe74 [diff] | |
parent | 98095cf4f8055e32ef91cf1be282b0dcb809bfa0 [diff] |
Merge "Avoid multiple build cancelations" into feature/zuulv3
diff --git a/zuul/manager/__init__.py b/zuul/manager/__init__.py index 680704e..87de645 100644 --- a/zuul/manager/__init__.py +++ b/zuul/manager/__init__.py
@@ -400,6 +400,9 @@ old_build_set.node_requests = {} canceled_jobs = set() for build in old_build_set.getBuilds(): + if build.result: + canceled_jobs.add(build.job.name) + continue was_running = False try: was_running = self.sched.launcher.cancel(build)