jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/884431 )

Change subject: simplify waiting on purge rate limit
......................................................................

simplify waiting on purge rate limit

Change-Id: I5cd7be48712563764439f6bdead6972c34e60f49
---
M scripts/touch.py
1 file changed, 12 insertions(+), 6 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/scripts/touch.py b/scripts/touch.py
index 047fe23..3c93e25 100755
--- a/scripts/touch.py
+++ b/scripts/touch.py
@@ -124,12 +124,9 @@

                 pywikibot.info('{} pages{} purged'
                                .format(length, '' if done else ' not'))
-                if not flush:
-                    delay = 60 + 2
-                    if delay:
-                        pywikibot.info(
-                            f'Waiting {delay} seconds due to purge rate limit')
-                        pywikibot.sleep(0 if config.simulate else delay)
+                if not flush and not config.simulate:
+                    pywikibot.info('Waiting due to purge rate limit')
+                    pywikibot.sleep(62)


 def main(*args: str) -> None:

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/884431
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5cd7be48712563764439f6bdead6972c34e60f49
Gerrit-Change-Number: 884431
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to