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

Custom notifiers #52

Merged
merged 4 commits into from
Dec 17, 2015
Merged

Custom notifiers #52

merged 4 commits into from
Dec 17, 2015

Conversation

Quentin-M
Copy link
Contributor

No description provided.

@jzelinskie
Copy link
Contributor

@Quentin-M this needs to be rebased

@Quentin-M
Copy link
Contributor Author

@jzelinskie

)

// A HTTP notifier dispatches notifications to an HTTP endpoint.
type HTTP struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we rename this WebhookNotifier and s/http/webhook all over the place? I think that's more descriptive than the transport protocol (http).

- The notifier was never checking if it should shutdown if there were always at least one notification to send
- After a failure, the notifier is supposed to back-off, but when Clair is stopping, the backoff was interrupted immediately and did not retry. Instead it selected a new notification to send (most likely: the same one) and looped quickly/weirdly.
@jzelinskie
Copy link
Contributor

LGTM

Quentin-M pushed a commit that referenced this pull request Dec 17, 2015
@Quentin-M Quentin-M merged commit 11475be into quay:master Dec 17, 2015
@Quentin-M Quentin-M deleted the custom_notifiers branch December 17, 2015 23:23
@jzelinskie jzelinskie added kind/cleanup no functional changes, only reorganization kind/feature request wishes for new functionality/docs reviewed/lgtm labels Mar 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup no functional changes, only reorganization kind/feature request wishes for new functionality/docs
Development

Successfully merging this pull request may close these issues.

None yet

2 participants