Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add retry on kafka event handlers #395

Merged
merged 2 commits into from
Dec 5, 2022
Merged

Add retry on kafka event handlers #395

merged 2 commits into from
Dec 5, 2022

Conversation

klowdo
Copy link
Collaborator

@klowdo klowdo commented Nov 18, 2022

Description

Retry eventhandlers unitil success

Affected Components

  • Kafka eventbus

Related Issues

Solution and Design

Add loop around eventhandler executor

Hans van den Bogert added 2 commits November 18, 2022 15:57
Breaking a select case isn't enough.
Previously the eventbus was lossy in case of eventhandlers returning error.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 68.679% when pulling 07947aa on klowdo:main into f8fe1ad on looplab:main.

log.Printf("eventhorizon: missed error in Kafka event bus: %s", err)
}

time.Sleep(time.Second)
Copy link
Member

Choose a reason for hiding this comment

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

Is this supposed to be here?

Copy link
Contributor

@hansbogert hansbogert Dec 5, 2022

Choose a reason for hiding this comment

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

This is similar to the approach in the GCP implementation.

@klowdo klowdo merged commit a7a482f into looplab:main Dec 5, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants