summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-11 18:59:01 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-11 18:59:01 +0100
commit4168b117950bce523660c54fa878f50237b082c5 (patch)
treeeab13137faa105426a5c209a5bffdc1fe6d5da63
parent823267afdd4fef39e074967559215655fb19eb3a (diff)
downloadjenkins.debian.net-4168b117950bce523660c54fa878f50237b082c5.tar.xz
reproducible: schedule more old packages if few new packages are in queue
-rwxr-xr-xbin/reproducible_scheduler.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 3a192cce..afb7809d 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -246,12 +246,14 @@ def scheduler():
if total <= 150:
many_old = 25 # multiplied by 10, usually, see below
elif total <= 250:
+ many_old = 15 # also...
+ elif total <= 350:
many_old = 10 # ...
else:
- many_old = 5
+ many_old = 5 # ...
for suite in SUITES:
if suite != 'experimental':
- many_old = many_old*10 # experimental is roughly one tenth of the other suites in size
+ many_old = many_old*10 # experimental is roughly one tenth of the size of the other suites
log.info('Requesting ' + str(many_old) + ' old packages in ' + suite + '...')
old[suite] = scheduler_old_versions(suite, many_old)
total += len(old[suite])