Lucas_Werkmeister_WMDE updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
---
General implementation breakdown:
- [ ] write timestamp to cache when a 429 response is received
- [ ] read from cache to check if we can make SPARQL requests or not
The best cache to use is probably `ObjectCache::newAnything()`, so that the 429 protection will still work even if no cache is set up (falling back to the database). This should probably be wrapped up in some new class similar to the existing `ResultsCache`.
...
- if no retry-after is present, a warning should be logged---
General implementation breakdown:
- [ ] write timestamp to cache when a 429 response is received
- [ ] read from cache to check if we can make SPARQL requests or not
The best cache to use is probably `ObjectCache::newAnything()`, so that the 429 protection will still work even if no cache is set up (falling back to the database). This should probably be wrapped up in some new class similar to the existing `ResultsCache`.
TASK DETAIL
EMAIL PREFERENCES
To: Lucas_Werkmeister_WMDE
Cc: Smalyshev, Jonas, Ladsgroup, Lucas_Werkmeister_WMDE, Addshore, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Agabi10, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
Cc: Smalyshev, Jonas, Ladsgroup, Lucas_Werkmeister_WMDE, Addshore, Aklapper, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Agabi10, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs