Skip to content

Commit

Permalink
fix(snapshot): Check for status code 417
Browse files Browse the repository at this point in the history
HTTP Status Code 417 returned while using frappe.throw
  • Loading branch information
tanmoysrt authored Feb 10, 2025
1 parent 9650bfb commit 20b623c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/database_physical_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def create_snapshot(self):
"key": self.snapshot_request_key,
},
)
if response.status_code in [500, 502, 503, 504] and retries <= 10:
if response.status_code in [417, 500, 502, 503, 504] and retries <= 10:
retries += 1
time.sleep(15 + randint(2, 8))
continue
Expand Down

0 comments on commit 20b623c

Please sign in to comment.