Skip to content

Commit

Permalink
possibly fixes rabbitmq bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sud335 committed Jan 23, 2024
1 parent b2baf8d commit 7ac852a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildingdepot/DataService/app/rest_api/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def connect_broker():
"""
try:
credentials = pika.PlainCredentials(rabbitmq_username, rabbitmq_password)
parameters = pika.ConnectionParameters(host="localhost", credentials=credentials)
parameters = pika.ConnectionParameters(host="localhost", credentials=credentials, connection_attempts=3, retry_delay=5)
pubsub = pika.BlockingConnection(parameters)
channel = pubsub.channel()
channel.exchange_declare(exchange=exchange, exchange_type="direct")
Expand Down

0 comments on commit 7ac852a

Please sign in to comment.