From a6eada0f94cb015c4c57cd3dd117656fdb5d5793 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Sat, 12 Sep 2015 11:31:09 +0000 Subject: reproducible: scheduler: add a comment to explain how LIMITS work --- bin/reproducible_scheduler.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index 2d0e6701..26f6783b 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -26,7 +26,22 @@ from reproducible_html_live_status import generate_schedule from reproducible_html_packages import gen_packages_html from reproducible_html_packages import purge_old_pages -# FIXME: these limits were understandable when the code was merged but now need some explaination +""" +How the scheduler chose which limit to apply: +everything depends on how many packages are already scheduled, in a 3 steps +process. Let's go by an example: + 'unstable': {1: (250, 40), 2: (350, 20), '*': 5}, +if total < 250: + 40 +elif total < 350: + 20 +else: + 5 + * 1st step, if there are less than 250 packages in the queue, schedule 40 + * 2nd step, if there are less than 350 packages in the queue, schedule 20 + * 3rd step, schedule 5 +So, the 3rd step happens only when there are more than 350 packages queued up. +""" LIMITS = { 'untested': { 'amd64': { -- cgit v1.2.3-70-g09d2