From c83b788568167ed7f197d8613e93817e4f98ebaf Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 12 Jun 2015 23:48:34 +0200 Subject: reproducible: remote_scheduler: look for the LOCAL_CALL env var and remove the scheduling limits in that case --- bin/reproducible_remote_scheduler.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin/reproducible_remote_scheduler.py') 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.' + -- cgit v1.2.3-54-g00ecf