From 28d684331f8449033bb14a9e6e0285253704e5df Mon Sep 17 00:00:00 2001 From: Matt Prahl Date: Wed, 16 Nov 2016 15:23:51 -0500 Subject: [PATCH] Remove stale code from previous modulemd version --- .../scheduler/handlers/components.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/module_build_service/scheduler/handlers/components.py b/module_build_service/scheduler/handlers/components.py index ec721a91..3b4f1948 100644 --- a/module_build_service/scheduler/handlers/components.py +++ b/module_build_service/scheduler/handlers/components.py @@ -87,24 +87,6 @@ def _finalize(config, session, msg, state): builder.buildroot_add_artifacts([nvr,], install=install) session.commit() - # Find all of the sibling builds of this particular build. - current_batch = parent.current_batch() - - # If there are no components, transition module build state to 'done' - if not current_batch: - log.info("Batch is empty. Moving module state to DONE.") - parent.transition(config, module.BUILD_STATES['done']) - session.commit() - return - - # Otherwise, check to see if all failed. If so, then we cannot continue on - # to a next batch. This module build is doomed. - if all([c.state != koji.BUILD_STATES['COMPLETE'] for c in current_batch]): - # They didn't all succeed.. so mark this module build as a failure. - parent.transition(config, models.BUILD_STATES['failed'], state_reason) - session.commit() - return - def complete(config, session, msg): return _finalize(config, session, msg, state=koji.BUILD_STATES['COMPLETE'])