[MediaWiki-commits] [Gerrit] [IMPR] Drop a script from the throttle log while waiting. - change (pywikibot/core)
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 Gerrit-Reviewer: John Vandenberg Gerrit-Reviewer: Ladsgroup Gerrit-Reviewer: Merlijn van Deen Gerrit-Reviewer: XZise Gerrit-Reviewer: Xqt Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] [IMPR] Drop a script from the throttle log while waiting. - change (pywikibot/core)
Xqt has uploaded a new change for review. https://gerrit.wikimedia.org/r/227741 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(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/41/227741/1 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: newchange Gerrit-Change-Id: Ic3f141fe01e7b837d7f34037e7eb8a4ab865984d Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Xqt ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits