Skip to content

fix: improve error when context is cancelled during retry backoff#814

Draft
jooola wants to merge 1 commit into
mainfrom
error-message-aborted-retry
Draft

fix: improve error when context is cancelled during retry backoff#814
jooola wants to merge 1 commit into
mainfrom
error-message-aborted-retry

Conversation

@jooola

@jooola jooola commented Jan 28, 2026

Copy link
Copy Markdown
Member

Improve the error message when the context is cancelled while waiting for the retry backoff.

@jooola jooola requested a review from a team as a code owner January 28, 2026 15:48
@codecov

codecov Bot commented Jan 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 79.41%. Comparing base (219a5d1) to head (a7f4ea0).
⚠️ Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
hcloud/client_handler_retry.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #814   +/-   ##
=======================================
  Coverage   79.41%   79.41%           
=======================================
  Files          60       60           
  Lines        4566     4566           
=======================================
  Hits         3626     3626           
  Misses        637      637           
  Partials      303      303           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jooola

jooola commented Jan 28, 2026

Copy link
Copy Markdown
Member Author

Should we maybe add details about the last response error we received, giving the reason of the retry?

e.g. rate_limit_exceeded

@jooola jooola marked this pull request as draft January 28, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant