Skip to content

Stop channel retries at the same max_retries bound as connections - #2671

Merged
auvipy merged 2 commits into
celery:mainfrom
gyanu2507:fix/ensure-channel-max-retries
Sep 22, 2026
Merged

auvipy merged 2 commits into
celery:mainfrom
gyanu2507:fix/ensure-channel-max-retries

Conversation

@gyanu2507

Copy link
Copy Markdown
Contributor

Connection.ensure stops connection errors when retries >= max_retries (one attempt plus max_retries). Channel errors used retries > max_retries, so they got one extra attempt. Channel errors now use the same bound.

ensure() used retries > max_retries for channel errors, so they got one extra attempt. Connection errors already stop at retries >= max_retries.
@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.92%. Comparing base (88295b4) to head (66b294b).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2671   +/-   ##
=======================================
  Coverage   83.91%   83.92%           
=======================================
  Files          80       80           
  Lines       11208    11208           
  Branches     1341     1341           
=======================================
+ Hits         9405     9406    +1     
+ Misses       1585     1584    -1     
  Partials      218      218           

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

@auvipy auvipy added this to the 5.7.0 milestone Sep 22, 2026
@auvipy
auvipy self-requested a review September 22, 2026 17:23
@auvipy
auvipy merged commit 6cdaef9 into celery:main Sep 22, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants