From f4fd94cc747b9589b2da7441d59a41db8ceb6500 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 18 Oct 2016 10:20:23 -0400 Subject: [PATCH] A little less repr in the scheduler logs. For the base-runtime module, the current repr here generates pages and pages of spam in the logs. The change here should greatly reduce that spam, and produce something that's much more interesting and readable. --- rida/scheduler/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rida/scheduler/main.py b/rida/scheduler/main.py index 47e6558e..05e5a26b 100644 --- a/rida/scheduler/main.py +++ b/rida/scheduler/main.py @@ -231,8 +231,10 @@ class Poller(threading.Thread): if name == 'build': for module_build in query.all(): log.info(" * %r" % module_build) - for component_build in module_build.component_builds: - log.info(" * %r" % component_build) + for i in range(module_build.batch): + n = len([c for c in module_build.component_builds + if c.batch == i ]) + log.info(" * %i components in batch %i" % (n, i)) def process_waiting_module_builds(self, session): log.info("Looking for module builds stuck in the wait state.")