[Qa-jenkins-scm] [jenkins.debian.net] 02/02: reproducible: scheduler: also turn the global limit arch-dependant
Holger Levsen
holger at moszumanska.debian.org
Sat Aug 15 11:02:06 UTC 2015
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 8437d0cabef29be4bac2fbca3648b5b58aa50371
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Tue Aug 11 20:02:33 2015 +0000
reproducible: scheduler: also turn the global limit arch-dependant
---
bin/reproducible_scheduler.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 9dc75ed..e994352 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -79,11 +79,9 @@ LIMITS = {
}
# define an "arch factor", so the scheduling limits differ between archs
-ARCH_SHARE = {
- 'amd64': 10,
- 'armhf': 3,
-}
+ARCH_SHARE = {'amd64': 10, 'armhf': 3}
+MAXIMUM = {'amd64': 750, 'armhf': 750}
class Limit:
def __init__(self, arch, queue):
@@ -539,7 +537,7 @@ if __name__ == '__main__':
for arch in ARCHS:
log.info('Scheduling for %s...', arch)
overall = int(query_db(query.format(arch))[0][0])
- if overall > 750:
+ if overall > MAXIMUM[arch]:
log.info('%s packages already scheduled, nothing to do.', overall)
continue
log.info('%s packages already scheduled, scheduling some more...',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list