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

fix: retry when connect to eventbus in sensor #816

Merged
merged 1 commit into from
Aug 6, 2020
Merged

fix: retry when connect to eventbus in sensor #816

merged 1 commit into from
Aug 6, 2020

Conversation

exherb
Copy link
Contributor

@exherb exherb commented Aug 5, 2020

when lots of sensors got updated, eventbus connect is really unstable.

@exherb exherb changed the title retry when connect to eventbus in sensor fix: retry when connect to eventbus in sensor Aug 5, 2020
@CLAassistant
Copy link

CLAassistant commented Aug 5, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@whynowy whynowy left a comment

Choose a reason for hiding this comment

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

This is good, thanks for the PR, Would you please add the same to https://github.com/argoproj/argo-events/blob/master/eventsources/eventing.go#L259?

@whynowy
Copy link
Member

whynowy commented Aug 5, 2020

We already have a retry function at https://github.com/argoproj/argo-events/blob/master/eventsources/sources/util.go#L18, can you switch to use that?

@exherb
Copy link
Contributor Author

exherb commented Aug 5, 2020

eventsource will crash and restart, so I think it’s ok to not retry connect when start?

@exherb
Copy link
Contributor Author

exherb commented Aug 5, 2020

We already have a retry function at https://github.com/argoproj/argo-events/blob/master/eventsources/sources/util.go#L18, can you switch to use that?

done

Copy link
Member

@whynowy whynowy left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@whynowy whynowy merged commit 8a10287 into argoproj:master Aug 6, 2020
juliev0 pushed a commit to juliev0/argo-events that referenced this pull request Mar 29, 2022
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.

3 participants