jenkins-bot has submitted this change and it was merged.
Change subject: [IMPR] Drop a script from the throttle log while waiting.
......................................................................
[IMPR] Drop a script from the throttle log while waiting.
checkimages.py and welcome.py may run in a loop and start over and over again
after a delay time. Drop these script from throttle control as long as they
are waiting to allow other scripts decreasing throttle write delay.
Change-Id: Ic3f141fe01e7b837d7f34037e7eb8a4ab865984d
---
M scripts/checkimages.py
M scripts/welcome.py
2 files changed, 2 insertions(+), 0 deletions(-)
Approvals:
Merlijn van Deen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/checkimages.py b/scripts/checkimages.py
index 4afe309..8588e11 100755
--- a/scripts/checkimages.py
+++ b/scripts/checkimages.py
@@ -1832,6 +1832,7 @@
if repeat:
pywikibot.output(u"Waiting for %s seconds," % time_sleep)
+ pywikibot.stopme()
time.sleep(time_sleep)
else:
break
diff --git a/scripts/welcome.py b/scripts/welcome.py
index 2176767..bc3ae1f 100755
--- a/scripts/welcome.py
+++ b/scripts/welcome.py
@@ -854,6 +854,7 @@
u"%d %b %Y %H:%M:%S (UTC)", time.gmtime())
pywikibot.output(u'Sleeping %d seconds before rerun. %s'
% (globalvar.timeRecur, strfstr))
+ pywikibot.stopme()
time.sleep(globalvar.timeRecur)
else:
raise KeyboardInterrupt
--
To view, visit https://gerrit.wikimedia.org/r/227741
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic3f141fe01e7b837d7f34037e7eb8a4ab865984d
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: XZise <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits