Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Heartbeat with long running tasks #296

@tom-pryor

Description

@tom-pryor

If you have heartbeats enabled and you do some long running task e.g:

  1. Get Message
  2. Do some long task (e.g long running SQL query, slow HTTP requests, etc.)
  3. Attempt to ack message

You get various errors relating to the AMQP connection e.g Library error: a socket error occurred because the AMQP server has closed the connection as the client did not send heartbeats. This also causes the message to be re-delivered to another consumer despite the current consumer still working on the request.

Is there some way to continue to send heartbeats? We have a load balancer in between the clients and RabbitMQ so we need the heartbeats and the timeout is already set at the maximum allowed to prevent the load balancer from terminating the idle connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    medium-pickGood issue for folks who want to stretch their contributions

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions