From 1ab259ba77c7dc3af8dce1c7cd99d0933093f4f0 Mon Sep 17 00:00:00 2001 From: Chenxiong Qi Date: Thu, 17 Oct 2019 22:35:52 +0800 Subject: [PATCH] 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 --- module_build_service/utils/batches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_build_service/utils/batches.py b/module_build_service/utils/batches.py index b752c113..4b667ce0 100644 --- a/module_build_service/utils/batches.py +++ b/module_build_service/utils/batches.py @@ -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)