Skip to content

Commit

Permalink
Merge pull request #751 from weni-ai/feature/adding-project-auth-message
Browse files Browse the repository at this point in the history
wait to retry just when dont send message
  • Loading branch information
barbosajackson authored Sep 22, 2023
2 parents 622bc51 + 0bcd443 commit 435faee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ def send_message(self, body: Dict, exchange: str, routing_key: str):
except Exception as err:
print(f"error: {err}")
self.rabbitmq_connection.make_connection()
sleep(settings.EDA_WAIT_TIME_RETRY)
if not sended:
sleep(settings.EDA_WAIT_TIME_RETRY)

0 comments on commit 435faee

Please sign in to comment.