From 4bf1a023453635568e16b1678ef5ad994c534045 Mon Sep 17 00:00:00 2001 From: Viktor Seifert Date: Thu, 21 Jul 2022 17:41:55 +0200 Subject: [PATCH] RED-4653: Added explicit conversion of the heartbeat config value to an int before passing it to pika --- pyinfra/queue/queue_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyinfra/queue/queue_manager.py b/pyinfra/queue/queue_manager.py index c12be9f..c51ce70 100644 --- a/pyinfra/queue/queue_manager.py +++ b/pyinfra/queue/queue_manager.py @@ -21,7 +21,7 @@ def get_connection_params(config: Config) -> pika.ConnectionParameters: "host": config.rabbitmq_host, "port": config.rabbitmq_port, "credentials": credentials, - "heartbeat": config.rabbitmq_heartbeat, + "heartbeat": int(config.rabbitmq_heartbeat), } return pika.ConnectionParameters(**pika_connection_params)