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

Add exponential backoff for Slack requests #135

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Add exponential backoff for Slack requests #135

merged 1 commit into from
Jun 20, 2024

Conversation

arbourd
Copy link
Owner

@arbourd arbourd commented Apr 4, 2024

Adds a 30 second retry to POST requests made to Slack's API, in the event that Slack experiences an intermittent failure.

Closes #94

This does not retry locally on http requests to Concourse itself (for build data, fixed/broke type). Not sure if we'd want to add that there as well, perhaps with a shorter back off?

@arbourd arbourd requested a review from smoke April 4, 2024 22:42
@arbourd arbourd force-pushed the add-backoff branch 4 times, most recently from 434a297 to 4504531 Compare April 4, 2024 22:51
Adds a 30 second retry to POST requests made to Slack's API, in the
event that Slack experiences an intermittent failure.
@arbourd
Copy link
Owner Author

arbourd commented Apr 5, 2024

Is 30 seconds too long? We should be expect 10s to get all request through, assuming the issue is just a connection reset or maybe a rolling pod on the Slack side?

@arbourd arbourd merged commit 5cc9ddd into main Jun 20, 2024
2 checks passed
@arbourd arbourd deleted the add-backoff branch June 20, 2024 03:28
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.

Add retry logic for Slack http requests
1 participant