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

Run work in different thread #8

Merged
merged 1 commit into from
Feb 6, 2019

Conversation

IvanSerpa
Copy link
Contributor

@IvanSerpa IvanSerpa commented Jan 8, 2019

Fix #14(Worker Push Notifications)


The problem

Some tasks that require a long execution time were blocking pika's ioloop which stop heartbeats to reach RabbitMQ. When RabbitMQ doesn't recive a heartbeat for a long time it considers the worker dead and resend the message, which create some duplicates because the worker did not die.

The solution

Runs the worker in a different thread so it can take as long as necessary while keeping his heart beating.


Obs.: Using this PR also requires to update Pika to 0.12.0

@hugofcampos hugofcampos merged commit 6e12818 into master Feb 6, 2019
@hugofcampos hugofcampos deleted the feature/run-work-in-different-thread branch February 6, 2019 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants