Skip to content

Commit

Permalink
[dc] Slow down retry in Azure Collect
Browse files Browse the repository at this point in the history
it seems the exiting retries keep erroring after 10 * 3 second retries, so error condition seems likely correlated with time. retrying for 5 minutes seems like the appropriate max
  • Loading branch information
Andrey Fedorov authored and sfc-gh-afedorov committed Feb 25, 2020
1 parent d98f0a6 commit 4566279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connectors/azure_collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ def load_table(kind, **params):
f=lambda: GET(kind, params, cred=cred),
E=(requests.exceptions.SSLError, requests.exceptions.ConnectionError),
n=10,
sleep_seconds_btw_retry=3,
sleep_seconds_btw_retry=30,
)
kind = 'connection' if kind == 'subscriptions' else kind
table_name = f'{table_prefix}_{kind}'
Expand Down

0 comments on commit 4566279

Please sign in to comment.