jenkins-bot has submitted this change and it was merged.
Change subject: archivebot: remove sleep as being redundant to throttling ......................................................................
archivebot: remove sleep as being redundant to throttling
Bug: T104046
Change-Id: I9908fc29b730253e79d1619c43e108272fd6942c --- M scripts/archivebot.py 1 file changed, 0 insertions(+), 5 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/archivebot.py b/scripts/archivebot.py index 5c925b6..53228df 100755 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -613,7 +613,6 @@ salt = None force = False calc = None - sleep = 10 args = []
def if_arg_value(arg, name): @@ -643,8 +642,6 @@ pagename = v for v in if_arg_value(arg, '-namespace'): namespace = v - for v in if_arg_value(arg, '-sleep'): - sleep = int(v) if not arg.startswith('-'): args.append(arg)
@@ -702,8 +699,6 @@ except Exception: pywikibot.error(u'Error occurred while processing page %s' % pg) pywikibot.exception(tb=True) - finally: - time.sleep(sleep)
if __name__ == '__main__': main()
pywikibot-commits@lists.wikimedia.org