summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-12 21:41:04 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-12 21:41:04 +0100
commit6725ef53532e75331f417e1b21cbc16002263dd8 (patch)
tree4df97f31088d6670956545dd19bf7e6314ace06d /bin
parent03796abe87766caf831cc5710cee50c5799cfba7 (diff)
downloadjenkins.debian.net-6725ef53532e75331f417e1b21cbc16002263dd8.tar.xz
reproducible: run scheduler less frequently
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index bdc757f3..102957ff 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -292,11 +292,10 @@ def scheduler():
if __name__ == '__main__':
- # scheduler is called 4 times per hour, so we only update the schroots roughly every 4th time
- if random.randrange(1,5) == 4:
- log.info('Updating schroots for all suites.')
- for suite in SUITES:
- call_apt_update(suite)
+ log.info('Updating schroots and sources tables for all suites.')
+ for suite in SUITES:
+ call_apt_update(suite)
+ update_sources_tables(suite)
try:
overall = int(query_db('SELECT count(*) FROM schedule')[0][0])
except:
@@ -305,6 +304,4 @@ if __name__ == '__main__':
log.info(str(overall) + ' packages already scheduled, nothing to do.')
sys.exit()
log.info(str(overall) + ' packages already scheduled, scheduling some more...')
- for suite in SUITES:
- update_sources_tables(suite)
scheduler()