Skip to content

Commit e4f34d0

Browse files
MichaelGHSegclaude
andcommitted
Increase max retries from 10 to 1000
Aligns with analytics-java change to accommodate shorter backoff periods (0.5s base, 60s cap). With faster retries, a higher retry limit allows for better resilience during extended outages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 21a8460 commit e4f34d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

segment/analytics/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class DefaultConfig(object):
3030
max_queue_size = 10000
3131
gzip = False
3232
timeout = 15
33-
max_retries = 10
33+
max_retries = 1000
3434
proxies = None
3535
thread = 1
3636
upload_interval = 0.5

segment/analytics/consumer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Consumer(Thread):
2929
log = logging.getLogger('segment')
3030

3131
def __init__(self, queue, write_key, upload_size=100, host=None,
32-
on_error=None, upload_interval=0.5, gzip=False, retries=10,
32+
on_error=None, upload_interval=0.5, gzip=False, retries=1000,
3333
timeout=15, proxies=None, oauth_manager=None):
3434
"""Create a consumer thread."""
3535
Thread.__init__(self)

0 commit comments

Comments
 (0)