-
Notifications
You must be signed in to change notification settings - Fork 45
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
add retry to webhook calls #17
base: master
Are you sure you want to change the base?
Conversation
Has this been tested? Also, is it possible to write a test for this? @0x777 ? |
currently the tests assume |
Hi ! |
This retry can be useful if the webhook was not able to accept the payload due to a temporary network glitch etc. Doing a blunt retry will make sure we don't lose calls due to this reason |
@@ -20,6 +21,8 @@ struct curl_fetch_st { | |||
size_t size; | |||
}; | |||
|
|||
const int WEBHOOK_RETRY = 5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MAX_WEBHOOK_RETRIES
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also should this be taken as an argument from command line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not waiting for client to send ack ?
issue #7 talks about adding retries for webhook calls.