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

Implement zero downtime reconnects for workers draining #79

Conversation

BrunoScheufler
Copy link
Contributor

No description provided.

When using the same goroutine to handle channel selects and sending to an unbuffered channel, there's no way for the channel receive to work.

This is fixed by not using a channel for control flow from error group to error group. This way, the same goroutine can be used.
@BrunoScheufler BrunoScheufler self-assigned this Nov 22, 2024
Copy link

linear bot commented Nov 22, 2024

handler.go Show resolved Hide resolved
connect/handler.go Outdated Show resolved Hide resolved
connect/connection.go Outdated Show resolved Hide resolved
connect/connection.go Outdated Show resolved Hide resolved
Copy link
Contributor

@darwin67 darwin67 left a comment

Choose a reason for hiding this comment

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

overall looking good. just a couple minor comments.

@BrunoScheufler BrunoScheufler merged commit 3df2b8d into main Nov 25, 2024
7 checks passed
@BrunoScheufler BrunoScheufler deleted the bruno/inn-4065-implement-zero-downtime-reconnects-for-workers-draining branch November 25, 2024 20:53
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.

2 participants