Skip to content

Commit 3e304d9

Browse files
authored
Merge pull request #427 from d-ph/docs/mention-issue-with-heartbeat-and-long-running-tasks
Mention the issue with rabbitmq's heartbeat and long running tasks.
2 parents 457d693 + cfab13e commit 3e304d9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ by default to avoid possible breaks in applications already using this bundle.
192192

193193
It's a good idea to set the ```read_write_timeout``` to 2x the heartbeat so your socket will be open. If you don't do this, or use a different multiplier, there's a risk the __consumer__ socket will timeout.
194194

195+
Please bear in mind, that you can expect problems, if your tasks are generally running longer than the heartbeat period, to which there are no good solutions ([link](https://github.com/php-amqplib/RabbitMqBundle/issues/301)).
196+
Consider using either a big value for the heartbeat or leave the heartbeat disabled in favour of the tcp's `keepalive` (both on the client and server side) and the `graceful_max_execution_timeout` feature.
197+
195198
### Dynamic Connection Parameters ###
196199

197200
Sometimes your connection information may need to be dynamic. Dynamic connection parameters allow you to supply or

0 commit comments

Comments
 (0)