mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-03 10:48:03 +08:00
Fix state for determining if continue building components in current batch
The original code before changing to is_unbuilt is to check if any component builds in current batch has state None. This patch fixes that. Signed-off-by: Chenxiong Qi <cqi@redhat.com>
This commit is contained in:
@@ -171,7 +171,7 @@ def start_next_batch_build(config, module, db_session, builder, components=None)
|
||||
|
||||
# Check that if there is something to build in current batch before starting
|
||||
# the new one. If there is, continue building current batch.
|
||||
if any(c.is_unbuilt for c in current_batch):
|
||||
if any(c.is_waiting_for_build for c in current_batch):
|
||||
log.info("Continuing building batch %d", module.batch)
|
||||
return continue_batch_build(config, module, db_session, builder, components)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user