Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements/disable retry on no network #62

Merged
merged 13 commits into from
Apr 23, 2024

Conversation

rcrahul43
Copy link
Contributor

Retry mechanism keep trying to push batched and increment the counter even if network is not available. Once the retry limit is reached, these events are dropped.

To fix this, we add a network availability check to stop incrementing the retry counter if network is not available. This keeps the event batch in db for future data push and also stops making unnecessary API calls if network is not available.

@rcrahul43 rcrahul43 self-assigned this Apr 17, 2024
…d_events

Record number of events dropped at the end for retry mechanims
@rcrahul43 rcrahul43 merged commit 90233a9 into main Apr 23, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants