[bluesky] wait unitl 'RateLimit-Reset' on 429 responses

pull/5270/head
Mike Fährmann 7 months ago
parent 7d874e2497
commit a00b171d4e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -444,7 +444,8 @@ class BlueskyAPI():
if response.status_code < 400:
return response.json()
if response.status_code == 429:
self.extractor.wait(seconds=60)
until = response.headers.get("RateLimit-Reset")
self.extractor.wait(until=until)
continue
try:

Loading…
Cancel
Save