Skip to content

Commit

Permalink
Merge pull request #5 from lsst-dm/u/dspeck/disable-retries
Browse files Browse the repository at this point in the history
Disable retries
  • Loading branch information
dspeck1 authored Aug 22, 2023
2 parents 0e59558 + 35573e6 commit f2b01a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ async def knative_request(
f"group id {next_visit_group_id} status code {result.status_code} for initial request {result.content}"
)

'''
if result.status_code == 502 or result.status_code == 503:
logging.info(
f"retry after status code {result.status_code} for group id {next_visit_group_id}"
Expand All @@ -145,6 +146,7 @@ async def knative_request(
logging.info(
f"group id {next_visit_group_id} retried request {retry_result.content}"
)
'''

in_process_requests_gauge.dec()

Expand Down

0 comments on commit f2b01a0

Please sign in to comment.