datalens-tech / datalens-backend

Data processing backend for DataLens

Home Page:https://datalens.tech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

US client retries non-idempotent requests

thenno opened this issue · comments

retry_methods={"GET", "POST", "PUT", "DELETE"}, # TODO: really retry all of them?..

Restarting POST requests to US is unsafe. I would suggest to remove POST from retry_methods.

Another strange thing is related to the codes:

self._retry_codes = {408, 429, 500, 502, 503, 504}
Retrying 408 and 429 is a way to completely shut down an overloaded service