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

feat(notifier): retry mechanism on slack notif #137

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

idilhaq
Copy link

@idilhaq idilhaq commented Mar 20, 2024

No description provided.

@idilhaq idilhaq linked an issue Mar 20, 2024 that may be closed by this pull request
@rahmatrhd rahmatrhd added this to the v0.9.2 milestone Mar 25, 2024
plugins/notifiers/client.go Outdated Show resolved Hide resolved
plugins/notifiers/client.go Outdated Show resolved Hide resolved
pkg/http/retry.go Outdated Show resolved Hide resolved
pkg/http/retry.go Outdated Show resolved Hide resolved
@@ -19,7 +20,8 @@ type Client interface {
}

const (
ProviderTypeSlack = "slack"
ProviderTypeSlack = "slack"
DefaultTimeoutInSeconds = 10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this also can be part of pkg/http

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Timeout is the part of the new HTTP client from Go package. Let's just remove the const and use the default from the http package (90 secs). But still this 10 secs should be set on config since 90 is too much for the timeout.

@rahmatrhd rahmatrhd modified the milestones: v0.9.2, v0.10.0 Apr 24, 2024
@rahmatrhd rahmatrhd removed this from the v0.10.0 milestone May 2, 2024
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.

retry slack notifications incase of timeout errors
4 participants