python3-krakenex
python3-krakenex copied to clipboard
WIP: Retry-on-failure using requests' session adapter
Incorporates PR #78. After that:
- Renames the parameters in
retry_config:-
forcelist->codes -
retries->count -
backoff->backoff(no change)
-
- Greatly limits the default set of error codes to retry on (compared to PR #78): just 504 and 520 now.
This PR:
- Closes #66 (issue) as implemented.
- Closes #100 (PR) as conflicting.
I think there might be issues with this approach, though:
- on every
query, theadaptergets re-created - this is rather ungraceful; - more importantly, the
adapterstays with thesessionand is used even ifretry=Falseis specified in a follow-upquery.