Peachy also does handle maxlag correctly.
-X!
On Nov 17, 2010, at 10:21 AM, Raymond Yee wrote:
I use mwclient, which, I think, handles maxlag (https://fisheye.toolserver.org/changelog/Bryan/mwclient/trunk/errors.py?cs=3...). I'm also looking into using mw-peachy, which also seems to implement the maxlag parameter (http://www.google.com/codesearch?q=maxlag+package:http://mw-peachy%5C.google...)
Am I understanding mwclient's and Peachy's implementation correctly?
Thanks, -Raymond
On 11/17/10 10:07 AM, Brad Jorsch wrote:
On Wed, Nov 17, 2010 at 05:44:57PM +0300, Max Semenik wrote:
On 17.11.2010, 16:39 Raymond wrote:
- How would I know when I'm accessing the API too quickly or too
often? I read at http://www.mediawiki.org/wiki/API:Errors_and_warnings that there is ratelimited error message, but so far, I've not seen that error myself. If I don't get a ratelimited error, does that mean I'm doing ok with respect to being a good API citizen.
Rate limits are for editing and logging in only.
Also, use and handle maxlag=5 on all queries so your bot will automatically pause when the database servers are overloaded. See http://www.mediawiki.org/wiki/Manual:Maxlag_parameter
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api