Addshore created this task. Addshore added projects: Wikidata, wikidata-tech-focus, Wikibase-Quality-Constraints. Restricted Application added a subscriber: Aklapper. |
TASK DESCRIPTION
When the quality constraints API is hit repeatedly mediawiki will flood the query service with requests, and the result will be mediawiki will get banned as in T163642.
To avoid getting banned our requests should respect the header returned by the query service (suggested in T204267#4584397)
TBA more detials
BDD
GIVEN a query service related constraint is run
AND the query service sends a 429 response
AND a "Retry-after" header is present
THEN QualityConstraints should not run fresh constraint reports using the query service for that number of seconds
TBA more BDD if retry-after is not always present?
Links
429 details: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429
Acceptance Criteria
- QualityConstraints looks at and respects the "Retry-after" header and 429 status
- The Retry-after back off is used across all
- TBA depending on if retry-after is not alway present
TASK DETAIL
EMAIL PREFERENCES
To: Addshore
Cc: Addshore, Aklapper, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, LawExplorer, Agabi10, Wikidata-bugs, aude, Mbch331
Cc: Addshore, Aklapper, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, LawExplorer, Agabi10, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs