Patches item #2813846, was opened at 2009-06-29 11:30
Message generated for change (Settings changed) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=281384…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: xqt (xqt)
Assigned to: Nobody/Anonymous (nobody)
Summary: Patch for deadlock handling (#2810921)
Initial Comment:
Here is a small code for wikipedia.py which does this (I've testet it and it works:
_putPage would retry to save the page instead of skipping it:
def _putPage(self, text, comment=None, watchArticle=False, minorEdit=True,
newPage=False, token=None, newToken=False, sysop=False,
captcha=None, botflag=True, maxTries=-1):
...
### deadlock handling
if ("1213: Deadlock found when trying to get lock" in data):
output(u"Deadlock error encountered; will retry in %i
minute%s."
% (retry_delay, retry_delay != 1 and "s" or
""))
time.sleep(60 * retry_delay)
retry_delay *= 2
if retry_delay > 30:
retry_delay = 30
continue
if self.site().mediawiki_message('readonly') in data or
self.site().mediawiki_message('readonly_lag') in data:
...
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-02 10:46
Message:
Patchfile with #2848941
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=281384…