Xqt created this task.
Xqt added projects: Pywikibot, Hackathon-Northwestern-Europe-2026.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Description:**
  A read limit was implemented in Pywikibot 1 (compat) when screen scraping was 
state of the art. In Pywikibot 2, this limit was set to 0. Due to T41417 
<https://phabricator.wikimedia.org/T41417>, in Pywikibot 11 the minthrottle 
<https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.config.html#settings-to-avoid-server-overload>
 was increased in rPWBC557d1de 
<https://phabricator.wikimedia.org/rPWBC557d1deff7b2b8a0c3cb629bc76902349735b002>,
 and in rPWBCe2e537c 
<https://phabricator.wikimedia.org/rPWBCe2e537c1e7b5d9c54bbbe6338ea0c57ac25fb4ef>
 the last access (read or write) was taken into account. Parallel processes are 
handled in the checkMultiplicity 
<https://doc.wikimedia.org/pywikibot/master/api_ref/throttle.html#throttle.Throttle.checkMultiplicity>
 method.
  
  **Problem:**
  API access limit is global and not per site. Currently, one thottle object is 
created for each site in throttle property 
<https://doc.wikimedia.org/pywikibot/master/api_ref/pywikibot.site.html#id22>
  
  **Solution:**
  
  Either use a global access throttle like in the legacy compat release, with 
global throttle objects:
  
    get_throttle = Throttle()
    put_throttle = Throttle(write=True)
  
  Or find a way to syncronize all sites via the `throttle.ctrl` file or the 
proposed implementation via sqlite 
<https://gerrit.wikimedia.org/r/c/pywikibot/core/+/188727>

TASK DETAIL
  https://phabricator.wikimedia.org/T420031

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to