Skip to content

Commit

Permalink
fixup! fix(write-hosts): retry on API response 404
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePrincipi committed Feb 21, 2025
1 parent 725fa09 commit 3c3b2be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions imageroot/bin/write-hosts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ import agent
api_path = os.environ["API_PATH"]
session = Session()
retries = Retry(
total=7,
backoff_factor=0.5,
status_forcelist={404,502},
total=8, backoff_factor=0.5, # Sum of retry periods should be 63.5 seconds
status_forcelist=set(range(404,512)), # retry on error states during Traefik startup
)

try:
Expand Down

0 comments on commit 3c3b2be

Please sign in to comment.