mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-13 14:29:42 +08:00
Merge #422 Fix #421 - Build next component immediatelly after the previous component build is finished.
This commit is contained in:
@@ -106,7 +106,7 @@ def _finalize(config, session, msg, state):
|
||||
builder.buildroot_add_artifacts(built_components_in_batch, install=install)
|
||||
builder.tag_artifacts(built_components_in_batch)
|
||||
session.commit()
|
||||
elif (not any([c.state == koji.BUILD_STATES['BUILDING']
|
||||
elif (any([c.state != koji.BUILD_STATES['BUILDING']
|
||||
for c in unbuilt_components_in_batch])):
|
||||
# We are not in the middle of the batch building and
|
||||
# we have some unbuilt components in this batch. We might hit the
|
||||
|
||||
@@ -121,6 +121,7 @@ def start_build_batch(config, module, session, builder, components=None):
|
||||
|
||||
# Local check for component relicts
|
||||
if any([c.state == koji.BUILD_STATES['BUILDING']
|
||||
and c.batch != module.batch
|
||||
for c in module.component_builds]):
|
||||
err_msg = "Cannot start a batch when another is in flight."
|
||||
log.error(err_msg)
|
||||
|
||||
Reference in New Issue
Block a user