Closed emfloyd2 closed 2 years ago
@emfloyd2 Thank you for your inquiry. After doing some research I found that you are correct and it is by design.
In the Python LIB there is an experimental feature called "sync_mode
", sync_mode
does NOT queue or batch messages, it sends them right away, synchronously. This would also negate the retry and backoff feature.
This would also negate the retry and backoff feature.
Can you clarify how the lack of retries is an intentional feature when using sync mode?
There is already a way to disable retries if you would want that, which is to set:
sync_mode=True,
max_retries=0,
Howdy. I wasn't sure if this is intentional, so I started with an Issue report.
It appears sync mode does not utilize retries (and backoff lib).
For reference: https://github.com/segmentio/analytics-python/blob/master/segment/analytics/consumer.py#L125-L134
versus sync implementation: https://github.com/segmentio/analytics-python/blob/master/segment/analytics/client.py#L280-L285