Updated retry counts

This commit is contained in:
Thomas Williams 2024-08-16 13:23:10 +01:00
commit 5de96c7b04
Signed by: thomas
GPG key ID: EB8F975CF60BCBFF
3 changed files with 4 additions and 3 deletions

View file

@ -70,7 +70,7 @@ def loadUrl(url):
headers = { 'User-Agent': 'Monutil monitor' }
@retry(stop_max_attempt_number=3)
@retry(stop_max_attempt_number=120, wait_fixed=1000)
def submitRequest(url):
response = requests.get(url, timeout=config.urlTimeout, headers=headers)

View file

@ -43,7 +43,7 @@ class rabbitMQClient:
def publish(self, message):
@retry(stop_max_attempt_number=3)
@retry(stop_max_attempt_number=120, wait_fixed=1000)
def publishMessage(conn):
ch = conn.channel()
@ -65,7 +65,7 @@ class rabbitMQClient:
publishMessage(conn)
@retry(stop_max_attempt_number=3)
@retry(stop_max_attempt_number=120, wait_fixed=1000)
def retrieve(self):
def callback(ch, method, properties, body):

View file

@ -1,3 +1,4 @@
pyodbc
psutil
requests
bs4