Skip to content

Clearify docs about infinite max_retries for tasks - #9576

Closed
ya-pekatoros wants to merge 1 commit into
celery:mainfrom
ya-pekatoros:main
Closed

ya-pekatoros wants to merge 1 commit into
celery:mainfrom
ya-pekatoros:main

Conversation

@ya-pekatoros

Copy link
Copy Markdown
Contributor

Description

This changes makes docs more clear about infinity retries for tasks.

The changes add the example of passing max_retries=None to the task decorator to build the task with infinity retries.

Also the changes clarify the docs string of the retry method of the Task removing "first" word, because to make you task retries forever you should only pass the max_retries=None to the Task class itself.

@codecov

codecov Bot commented Feb 24, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.23%. Comparing base (35cca09) to head (7fa19da).
Report is 52 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9576   +/-   ##
=======================================
  Coverage   78.23%   78.23%           
=======================================
  Files         153      153           
  Lines       19052    19052           
  Branches     2521     2521           
=======================================
  Hits        14906    14906           
  Misses       3860     3860           
  Partials      286      286           
Flag Coverage Δ
unittests 78.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Nusnus Nusnus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting on #9577 (review)

@ya-pekatoros

Copy link
Copy Markdown
Contributor Author

No need of changes because these changes are already in #9577

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.

2 participants