python-zulip-api/zulip/integrations
Alex Vandiver a20c9cc6d7 zephyr: Use exponential backoffs in retry loops.
This reduces the number of retries that might spam APIs.

There is some complexity here which is left un-managed -- for
instance, maybe_restart_mirroring_script does a number of restart
attempts, and then fails, but will be retried every 15s by the
surrounding `process_loop`.  Previously, it would merely have looped
forever inside maybe_restart_mirroring_script.

Three loops are intentionally left as infinite `while True` loops,
that merely cap their backoff at the default 90s.  Their callers do
not expect, or have any way to handle more gracefully, a failure of
the expected-infinite-loop in `process_loop` or `zulip_to_zephyr`.
They maintain their previous behavior of retrying forever, albeit more
slowly.
2020-08-10 15:07:01 -07:00
..
bridge_between_zulips Modernize legacy Python 2 syntax with pyupgrade. 2020-04-18 15:04:36 -07:00
bridge_with_irc irc_mirror_backend: Remove repeated dictionary key. 2020-04-18 20:31:14 -07:00
bridge_with_matrix Matrix bridge: Change the condition of not_from_zulip_bot. 2020-08-07 08:15:07 -04:00
codebase typing: Convert function type annotations to Python 3 style. 2020-04-18 20:31:14 -07:00
git cleanup: Move line breaks before binary operators. 2020-04-18 20:31:14 -07:00
google cleanup: Remove unused imports. 2020-04-18 20:31:14 -07:00
hg Update zulipchat.com links to zulip.com. 2020-06-11 21:06:58 -07:00
jabber cleanup: Move line breaks before binary operators. 2020-04-18 20:31:14 -07:00
jira python: Remove per-file copyright notices. 2020-03-23 12:52:52 -07:00
log2zulip cleanup: Remove unused variables. 2020-04-18 20:31:14 -07:00
nagios cleanup: Remove unused imports. 2020-04-18 20:31:14 -07:00
openshift typing: Convert function type annotations to Python 3 style. 2020-04-18 20:31:14 -07:00
perforce cleanup: Remove unused imports. 2020-04-18 20:31:14 -07:00
rss Update zulipchat.com links to zulip.com. 2020-06-11 21:06:58 -07:00
svn cleanup: Remove unused imports. 2020-04-18 20:31:14 -07:00
trac cleanup: Move line breaks before binary operators. 2020-04-18 20:31:14 -07:00
trello Update zulipchat.com links to zulip.com. 2020-06-11 21:06:58 -07:00
twitter typing: Convert function type annotations to Python 3 style. 2020-04-18 20:31:14 -07:00
zephyr zephyr: Use exponential backoffs in retry loops. 2020-08-10 15:07:01 -07:00
__init__.py matrix tests: tweak import and add __init__.py to ensure tests run. 2018-08-08 17:26:15 -07:00