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

Added code to retry on server errors #23

Closed

Conversation

@Shwetajain148
Copy link

@Shwetajain148 Shwetajain148 commented Oct 24, 2017

@mchaudhary @mostlyjason In this PR, I have implemented the code to store the logs before sending in a backup array when the final JSON event is ready to send and then call a function which will call the sendBulkLogs() and sendLogs() function respectively in case of Bulk and Input mode.

The approach I am following is to retry sending the logs from the backup array maximum 5 times when there is a server error and if the counter reaches to 5 then it will not retry anymore.

Currently, I am seeing some issues and doing testing of the implemented code so I need some time to complete this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.