diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-06-12 23:48:34 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-06-14 22:36:07 +0200 |
commit | c83b788568167ed7f197d8613e93817e4f98ebaf (patch) | |
tree | c0b72a5ce6a3dc1662c6a94a92719e9d76be5237 | |
parent | 1cd9947d4cca0d63512519061fab09875660732f (diff) | |
download | jenkins.debian.net-c83b788568167ed7f197d8613e93817e4f98ebaf.tar.xz |
reproducible: remote_scheduler: look for the LOCAL_CALL env var and remove the scheduling limits in that case
-rwxr-xr-x | bin/reproducible_remote_scheduler.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py index 55b76636..6259d0df 100755 --- a/bin/reproducible_remote_scheduler.py +++ b/bin/reproducible_remote_scheduler.py @@ -52,6 +52,13 @@ except KeyError: 'schedule packages. Ask in #debian-reproducible if you have ' 'trouble with that.' + bcolors.ENDC) sys.exit(1) +# this variable is setted by reproducible scripts, and it's clearly available +# only on calls made by the local host +try: + local = True if os.environ['LOCAL_CALL'] == 'true' else False +except KeyError: + local = False + suite = scheduling_args.suite reason = ' '.join(scheduling_args.message) packages = scheduling_args.packages @@ -137,7 +144,7 @@ try: except IndexError: amount = 0 log.debug(requester + ' already scheduled ' + str(amount) + ' packages today') -if amount + len(ids) > 50: +if amount + len(ids) > 50 and not local: log.error(bcolors.FAIL + 'You have exceeded the maximum number of manual ' + 'reschedulings allowed for a day. Please ask in ' + '#debian-reproducible if you need to schedule more packages.' + |