Issue 11103

Title
Better rate limits management
Priority
feature
Status
testing
Nosy list
ced, reviewbot
Assigned to
ced
Keywords
review

Created on 2021-12-30.03:38:01 by ced, last changed 3 weeks ago by reviewbot.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-12-30.03:38:01

Shopify enforces rate limits on the API calls: https://shopify.dev/api/usage/rate-limits#graphql-admin-api-rate-limits.
For now we sleep after each call to ensure to stay bellow the limit. But it is sub-optimal and it does not work well on distributed setup.
Instead we could catch the 429 HTTP error and retry after the suggested time. Also we could prevent to reach the limit by preventively sleep if we have consume the bucket.

History
Date User Action Args
2021-12-30 10:48:47reviewbotsetmessages: + msg73006
2021-12-30 03:51:18reviewbotsetmessages: + msg73005
nosy: + reviewbot
2021-12-30 03:41:03cedsetkeyword: + review
reviews: 374571002
status: in-progress -> testing
2021-12-30 03:38:01cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)