Repository navigation
Clearify docs about infinite max_retries for tasks - #9576
Closed
ya-pekatoros wants to merge 1 commit into
Closed
ya-pekatoros wants to merge 1 commit into
ya-pekatoros wants to merge 1 commit into
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Nusnus
self-requested a review
February 24, 2025 14:26
Contributor
Author
|
No need of changes because these changes are already in #9577 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.