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

clear the decision queue #65

Merged
merged 1 commit into from
Mar 17, 2021
Merged

Conversation

sjamgade
Copy link
Contributor

to make sure consumer threads is not looping unnecessarily. This can
happen if the node is loaded and consumer thread has remain unscheduled

to make sure consumer threads is not looping unnecessarily. This can
happen if the node is loaded and consumer thread has remain unscheduled
try:
q.get(False)
except Empty:
continue
Copy link
Contributor

Choose a reason for hiding this comment

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

break would look a bit safer here but I guess it doesn't really matter

@rikonen rikonen merged commit 7e0b00c into Aiven-Open:master Mar 17, 2021
@sjamgade sjamgade mentioned this pull request Mar 22, 2021
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.

None yet

2 participants