From 8f2bc4e028aafdef893458d1433a05724f534fce Mon Sep 17 00:00:00 2001 From: Viktor Seifert Date: Mon, 18 Jul 2022 16:41:31 +0200 Subject: [PATCH] RED-4653: Set heartbeat to lower value so that disconnects are detected more quickly --- pyinfra/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyinfra/config.py b/pyinfra/config.py index 4156d8b..5429f30 100644 --- a/pyinfra/config.py +++ b/pyinfra/config.py @@ -23,7 +23,7 @@ class Config(object): self.rabbitmq_password = read_from_environment("RABBITMQ_PASSWORD", "bitnami") # Controls AMQP heartbeat timeout in seconds - self.rabbitmq_heartbeat = read_from_environment("RABBITMQ_HEARTBEAT", "7200") + self.rabbitmq_heartbeat = read_from_environment("RABBITMQ_HEARTBEAT", "60") # Queue name for requests to the service self.request_queue = read_from_environment("REQUEST_QUEUE", "request_queue")