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

Call queue.task_done() only after a successful get() #30

Closed
wants to merge 1 commit into from

Conversation

kmorwath
Copy link

queue.task_done() should be called only when an item was actually returned by get(). If get() raises a Empty exception, task_done() should not be called.

Also, close the Pika connection only if it was actually opened.

queue.task_done() should be called only when an item was actually returned by get(). If get() raises a Empty exception, task_done() should not be called.

Also, close the Pika connection only if it was actually opened.
@kmorwath
Copy link
Author

I've seen now close_connection() also sets the "stopping" event - shouldn't the thread keep on running even if close_after_emit is true?

@albertomr86
Copy link
Owner

Merged by #37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants