-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Don't fail task on timeout during cold shutdown #9678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9678 +/- ##
==========================================
- Coverage 78.68% 78.68% -0.01%
==========================================
Files 153 153
Lines 19314 19328 +14
Branches 2214 2221 +7
==========================================
+ Hits 15198 15208 +10
- Misses 3817 3822 +5
+ Partials 299 298 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
auvipy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we consider improving test coverage and if possible some integration tests? what do you think?
|
@daveisfera do you want to give this PR a test to confirm it works for you as well? |
I tested this fix and it appears to be handling it correctly now, but the Here's the output: And here's the result saved in the database: |
Thank you, I’ll check it out |
c034f3a to
06dd9b3
Compare
|
For the sake of documentation, I tried this latest version ( |
6eecfaf to
5a62a26
Compare
I’ve added a potential fix in 5a62a26 The idea is that canceling a successful task changes the status to RETRY, so avoiding it should fix this in theory. Thank you! |
auvipy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
The status is still set to |
|
Could be related: Ensure that task results are delivered during pool shutdown #435 |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
|
This issue is much more challenging than what any AI can handle right now; avoid trusting it here @auvipy I'm giving it another shot right now, please so not make any change to the PR/branch 🙏 |
no worries, not going to merge anything here from it, as already got fooled once by him! :p |
Just for the record: this doesn't solve it. |
Potential fix pushed, ready for QA! |
Saaaaweeeet!!!! Yes, I can confirm that my test repo now works correctly! |
Woohoo 🎉 Thank you for the quick confirmation! |
Fixes #9505
After the soft shutdown is over, the cold shutdown cannot honor the error-handling flow, as the worker must terminate as fast as possible so we may skip the timeout failure in that specific edge case.
Summary by CodeRabbit
Bug Fixes
Tests