Bugs item #3474580, was opened at 2012-01-16 16:22 Message generated for change (Comment added) made by malafaya You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3474580...
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: General Group: None
Status: Open
Resolution: None Priority: 4 Private: No Submitted By: André Malafaya Baptista (malafaya) Assigned to: Nobody/Anonymous (nobody) Summary: Updating complex pages
Initial Comment: When updating complex pages, it's common to get a Timeout, because the Wikimedia server does not process and return the page within the expected time. In suchs cases (when a timeout exception is thrown), my suggestion si that pywikipedia should try to fetch the page again and check if there are any differences against the new page to be saved. If not, then it should proceed and not block indefinitely in such pages.
----------------------------------------------------------------------
Comment By: André Malafaya Baptista (malafaya)
Date: 2012-01-20 09:22
Message: Hmmm, I'm not sure you understood. I'm not updating the page more than once simultaneoulsy. It's just one bot run. As the page is a complicated one, the server does not respond on time (you can try [[Europa]] at pt.wiktionary). The bot then tries again, but obviously the same happens. The difference is that the page has already been updated in the first try, even if the server has not responded. In operations such as replace.py, where it's common to edit long pages, you get in a long loop.
----------------------------------------------------------------------
Comment By: xqt (xqt) Date: 2012-01-20 05:47
Message: This is the way the bot works. It trys to put the page for several times which is given by maxretries in the (user_)config.py. Edit conflicts are detected (by the mw api) except you are using your bot account for multiple edits on the same page in the same time.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3474580...
pywikipedia-bugs@lists.wikimedia.org