summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-11 22:25:20 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-11 22:25:20 +0100
commit95cb5f234f8a94a510c6388658243bec5c8e1d06 (patch)
treeea44d4512f4d999fabfe5148a1b7a8e199ede98e /bin
parent951594f792afe757ee299d2f74546c14e02802a4 (diff)
downloadjenkins.debian.net-95cb5f234f8a94a510c6388658243bec5c8e1d06.tar.xz
reproducible: only update the schedule page if nothing to schedule. run scheduler four times per hour.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index d64555a4..45f5f3f0 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -292,12 +292,11 @@ def scheduler():
if __name__ == '__main__':
overall = int(query_db('SELECT count(*) FROM schedule')[0][0])
- if overall > 400:
+ if overall > 250:
build_page('scheduled') # from reproducible_html_indexes
log.info(str(overall) + ' packages already scheduled, nothing to do.')
sys.exit()
- else:
- log.info(str(overall) + ' packages already scheduled, scheduling some more...')
+ log.info(str(overall) + ' packages already scheduled, scheduling some more...')
for suite in SUITES:
call_apt_update(suite)
update_sources_tables(suite)