Moved retry logic
This commit is contained in:
parent
5de96c7b04
commit
6a2ab18c84
1 changed files with 1 additions and 1 deletions
|
@ -41,9 +41,9 @@ class rabbitMQClient:
|
||||||
self.rabbitmqPort = rabbitmqPort
|
self.rabbitmqPort = rabbitmqPort
|
||||||
self.routingKey = routingKey
|
self.routingKey = routingKey
|
||||||
|
|
||||||
|
@retry(stop_max_attempt_number=120, wait_fixed=1000)
|
||||||
def publish(self, message):
|
def publish(self, message):
|
||||||
|
|
||||||
@retry(stop_max_attempt_number=120, wait_fixed=1000)
|
|
||||||
def publishMessage(conn):
|
def publishMessage(conn):
|
||||||
|
|
||||||
ch = conn.channel()
|
ch = conn.channel()
|
||||||
|
|
Loading…
Reference in a new issue