python-zulip-api icon indicating copy to clipboard operation
python-zulip-api copied to clipboard

API: Improve exponential backoff implementation (add maximum)

Open neiljp opened this issue 5 years ago • 2 comments

For the python API, the exponential backoff could be improved through adding a maximum.

Motivated by the following conversation: https://chat.zulip.org/#narrow/stream/92-learning/topic/exponential.20backoff.20--.20with.20jitter/near/818761

Following from the discussion, connected improvements could include adjusting the random selection range, if this is an improvement.

neiljp avatar Feb 22 '20 03:02 neiljp

Made a PR for do_api_query. But base and cap need to be decided. Also if this is done, then I can change class RandomExponentialBackoff accordingly.

orientor avatar Feb 23 '20 10:02 orientor

See https://chat.zulip.org/#narrow/stream/92-learning/topic/exponential.20backoff.20--.20with.20jitter/near/820056.

showell avatar Feb 23 '20 12:02 showell