Repository navigation
Improve docs about acks_on_failure_or_timeout - #9577
Conversation
|
In addition, I wonder about actually ack in case of task fail. I see, what this attribute leads to call on_reject but with requeue=False, and actually change the acknowledged flag to True in case on call "on_failure". In case of Exception without retry task will be acked. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9577 +/- ##
=======================================
Coverage 78.30% 78.30%
=======================================
Files 153 153
Lines 19112 19112
Branches 2530 2530
=======================================
Hits 14966 14966
+ Misses 3859 3857 -2
- Partials 287 289 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thank you for quick reply! Yes, if you agree with the proposal - I can merge both changes. And I also wonder about this question: |
|
@Nusnus Hi again! I've closed another PR. |
auvipy
left a comment
There was a problem hiding this comment.
are the failing tests related to this? may be not right?
|
@auvipy this PR only update docs... I see what the amount of checks here is greater than in main branch pipeline. 70 vs 68... not sure about this fails... seems not to be connected with these changes. |
|
Thanks |
Nusnus
left a comment
There was a problem hiding this comment.
I want to avoid reverting this PR so I left a few comments to better understand the changes. Take note @ya-pekatoros as this PR was merged during a later RC phase and every change is super sensitive so I want to have very clear motivation for merged changes at the moment or I will be required to revert it to proceed with the release cycle.
I hope you understand, thank you.
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Default: Enabled | ||
| Default: Disabled |
There was a problem hiding this comment.
@ya-pekatoros What was the motivation behind changing this?
There was a problem hiding this comment.
ughs! thought just as an docs update. shouldn't hurry merging this
| When enabled messages for all tasks will be acknowledged even if they | ||
| fail or time out. | ||
|
|
||
| Configuring this setting only applies to tasks that are |
There was a problem hiding this comment.
Was this phrasing confusing? What was wrong with it?
There was a problem hiding this comment.
@Nusnus I think that 'this setting' is more concise and clear variant, because we apply settings. The setting is the subject here.
Description
This changes makes docs more clear about infinity retries for tasks and acks_on_failure_or_timeout.
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.
Actually the value of attribute 'acks_on_failure_or_timeout' for Task is 'None' by default.
Yes, if acks_late=False, this logic is disabled, but this information is already in docs. So I suggest to clarify the actual value of this attribute.