Patches item #2813846, was opened at 2009-06-29 11:30 Message generated for change (Tracker Item Submitted) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2813846...
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: Open 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: ...
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2813846...
pywikipedia-bugs@lists.wikimedia.org