Skip to content

Commit

Permalink
feat: Retrying the HTTP sink in case of 404s and request timeout on t…
Browse files Browse the repository at this point in the history
…he sinks
  • Loading branch information
noble-varghese committed Oct 8, 2024
1 parent b58e1b2 commit c85e668
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sinks/util/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ where

match status {
StatusCode::TOO_MANY_REQUESTS => RetryAction::Retry("too many requests".into()),
StatusCode::NOT_FOUND => RetryAction::Retry("not found".into()),
StatusCode::REQUEST_TIMEOUT => RetryAction::Retry("request timedout".into()),

Check failure on line 525 in src/sinks/util/http.rs

View workflow job for this annotation

GitHub Actions / Check Spelling

`timedout` is not a recognized word. (unrecognized-spelling)
StatusCode::NOT_IMPLEMENTED => {
RetryAction::DontRetry("endpoint not implemented".into())
}
Expand Down

0 comments on commit c85e668

Please sign in to comment.