0

I'm using pika to run long tasks. Unfortunately, this ends up running into heartbeat timeout. Unfortunately, prolonging heartbeat periods is not a solution, and i would like to avoid workarounds like using database, etc.

What is a proper solution, to deal with long running tasks and heartbeat, without loosing benefits of RabbitMQ?

Note: I know this question was asked before, but many of the answers are related to previous versions of pika. I would like to know if there is a better solution to this issue.

Adeom
  • 238
  • 1
  • 9

1 Answers1

0

This has already been answered -

https://stackoverflow.com/a/52951933/1466825

Please use the latest version of Pika and this example code as a starting point -

https://github.com/pika/pika/blob/master/examples/basic_consumer_threaded.py


NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.

Luke Bakken
  • 8,993
  • 2
  • 20
  • 33