-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access current maxlag value of the server #510
Comments
The code for this is in #470, hold my beer |
Cool. The throttling parameter the PR contain might very well explain why I am receiving tons of |
Argh, just saw you removed that throttling logic thing, I could have used that, too. |
Yes, by default WDTK will send a If you want your bot to be more aggressive (keep editing even if the lag is high) you can use Concerning the throttling, we lack official guidance from WMDE to implement this properly. https://phabricator.wikimedia.org/T240442 |
I am seeing 2 kinds of different behaviors :
|
Overall, as client you do not have many possibilities: keep retrying. |
* Add method to fetch the current lag from the server. Closes #510. * Add missing test resource
A query with -1 as the maxLag value returns the actual server lag without any metadata.
I would find it convenient if the API could provide a simple "ping" call that would return the current server maxLag, so that we are informed how busy the server is. I could not find a way to know this besides receiving an Exception when the call fails due to maximum number of retries reached.
The text was updated successfully, but these errors were encountered: