diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-03-08 00:33:19 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-03-08 10:19:47 +0100 |
commit | 63fd28b70c169d9008ce303794d784659bdcf19f (patch) | |
tree | 2917f843a6d465634bd7927ab3501972dde51838 | |
parent | d6b90fa50df6e3f1b7f8e5b599d284401213f7ae (diff) | |
download | jenkins.debian.net-63fd28b70c169d9008ce303794d784659bdcf19f.tar.xz |
reproducible: scheduler: show the number of total packages now scheduled in , instead of only new ones
-rwxr-xr-x | bin/reproducible_scheduler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index dbebb7ae..024a32f6 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -257,13 +257,17 @@ def scheduler(): all_scheduled_pkgs.extend(untested[suite]) all_scheduled_pkgs.extend(new[suite]) all_scheduled_pkgs.extend(old[suite]) + query = 'SELECT count(*) ' + \ + 'FROM schedule AS p JOIN sources AS s ON p.package_id=s.id ' + \ + 'WHERE s.suite="{suite}"'.format(suite=suite) + now_queued_here = int(query_db(query)[0][0]) + len(all_scheduled_pkgs) # build the final message text message = 'Scheduled in ' + suite + ': ' + \ str(len(untested[suite])) + ' untested packages, ' + \ str(len(new[suite])) + ' packages with new versions and ' + \ str(len(old[suite])) + ' with the same version ' + \ '(total: ' + str(total) + ' of which ' + \ - str(len(all_scheduled_pkgs)) + ' in ' + suite + ')' + str(now_queued_here) + ' in ' + suite + ')' kgb = ['kgb-client', '--conf', '/srv/jenkins/kgb/debian-reproducible.conf', '--relay-msg'] kgb.extend(message.split()) |