Skip to content

Commit

Permalink
cleaning up main
Browse files Browse the repository at this point in the history
  • Loading branch information
kreynoldsf5 committed Mar 28, 2024
1 parent 489a3cb commit 7a3a8af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,11 @@ def main():
metadata = query_metadata(metadata_base_url)

if metadata:
payload = {"LabID": metadata['LabID']}
max_retries = 6
retries = 0

while retries < max_retries:
success = send_sqs(metadata['SQS_URL'], payload)
success = send_sqs(metadata)
if success:
print("Message sent to SQS successfully.")
retries = 0
Expand Down

0 comments on commit 7a3a8af

Please sign in to comment.