Moved retry logic

This commit is contained in:
Thomas Williams 2024-08-17 10:43:49 +01:00
parent 5de96c7b04
commit 6a2ab18c84
Signed by: thomas
GPG key ID: EB8F975CF60BCBFF

View file

@ -41,9 +41,9 @@ class rabbitMQClient:
self.rabbitmqPort = rabbitmqPort
self.routingKey = routingKey
@retry(stop_max_attempt_number=120, wait_fixed=1000)
def publish(self, message):
@retry(stop_max_attempt_number=120, wait_fixed=1000)
def publishMessage(conn):
ch = conn.channel()