Skip to content

Commit

Permalink
Remove 504 HTTP status code retry
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Sep 17, 2024
1 parent 389e569 commit da4f7b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## [Unreleased]
### Removed
- Retries of requests ended with `504` HTTP status code, since it's not clear if the request was delivered or not, by @HardNorth

## [5.5.7]
### Added
Expand Down
2 changes: 1 addition & 1 deletion reportportal_client/_internal/aio/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
DEFAULT_RETRY_NUMBER: int = 5
DEFAULT_RETRY_DELAY: float = 0.005
THROTTLING_STATUSES: set = {425, 429}
RETRY_STATUSES: set = {408, 500, 502, 503, 504, 507}.union(THROTTLING_STATUSES)
RETRY_STATUSES: set = {408, 500, 502, 503, 507}.union(THROTTLING_STATUSES)


class RetryClass(int, Enum):
Expand Down

0 comments on commit da4f7b8

Please sign in to comment.