Page MenuHomePhabricator

use self.site.userinfo['ratelimits'] to adjust put throttle
Open, LowPublicFeature

Description

Feature summary:
use site.userinfo['ratelimits'] to adjust put throttle

Use case(s):
Instead of calling api.Request._ratelimited if a ratelimit exceeds, the Throttle object should be adjusted accordingly, e.g. after the first _ratelimited call.

Benefits:
There are no wait cycles anymore, see T152597 for example

Event Timeline

Xqt triaged this task as Low priority.Mar 28 2022, 5:05 AM
Xqt updated the task description. (Show Details)

Change 836251 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [IMPR] Add APISite.ratelimit() method

https://gerrit.wikimedia.org/r/836251

Change 836251 merged by jenkins-bot:

[pywikibot/core@master] [IMPR] Add APISite.ratelimit() method

https://gerrit.wikimedia.org/r/836251

Xqt claimed this task.

put throttle should be adjusted also