Skip to content

#9597: Ensure surpassing Hard Timeout limit when task_acks_on_failure_or_timeout is False rejects the task - #9626

Merged
auvipy merged 2 commits into
celery:mainfrom
JacksonKontny:9597-hard-timelimit-reject
Mar 20, 2025
Merged

auvipy merged 2 commits into
celery:mainfrom
JacksonKontny:9597-hard-timelimit-reject

Conversation

@JacksonKontny

@JacksonKontny JacksonKontny commented Mar 18, 2025 •

Copy link
Copy Markdown
Contributor

Description

Ensure surpassing Hard Timeout limit when task_acks_on_failure_or_timeout is False rejects the task

Fixes #9596

@Nusnus
Nusnus self-requested a review March 18, 2025 23:39
@codecov

codecov Bot commented Mar 18, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.31%. Comparing base (9226cb4) to head (8b61f45).
Report is 38 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9626   +/-   ##
=======================================
  Coverage   78.31%   78.31%           
=======================================
  Files         153      153           
  Lines       19116    19116           
  Branches     2531     2531           
=======================================
  Hits        14970    14970           
+ Misses       3859     3857    -2     
- Partials      287      289    +2     
Flag Coverage Δ
unittests 78.29% <ø> (ø)

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.

@auvipy auvipy 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.

the changes looks good to me. but should this change also need some additional integrations test for better validation? and are the smoke test failures related to this pr?

@auvipy auvipy added this to the 5.5.0 milestone Mar 19, 2025
@JacksonKontny

Copy link
Copy Markdown
Contributor Author

@auvipy

should this change also need some additional integrations test for better validation

Happy to add integration tests if its necessary. The existing tests didn't appear at first glance to have a good place to add them, and it appeared the scope of the integration tests was a little broader than the new boolean logic introduced here. Do you have any suggestions for where a test could be added?

and are the smoke test failures related to this pr

Seems they passed on a subsequent run, thanks for running the retry @Nusnus

@auvipy

auvipy commented Mar 20, 2025

Copy link
Copy Markdown
Member

may be we can skip additional integration tests for this. looks good. it just introduced another check if the first check is not valid

@auvipy
auvipy merged commit 53dc515 into celery:main Mar 20, 2025
@Nusnus

Nusnus commented Mar 20, 2025 •

Copy link
Copy Markdown
Member

@auvipy

may be we can skip additional integration tests for this. looks good. it just introduced another check if the first check is not valid

I'm actively working on this PR right now, I wanted to contribute the new tests before we merge it :/

Please avoid merging PRs I'm marked for review without my approval unless it's something trivial or obvious. I add myself to PRs I want to validate before merge, so you can know what I got my eyes on 🙂

EDIT:
The release cycle is not over yet, so I am also super sensitive to changes right now.
Please keep that in mind 🙏 @auvipy

@auvipy

auvipy commented Mar 20, 2025

Copy link
Copy Markdown
Member

OK, please mention in the PR that Additional work/ test is underway so that other maintainers understand that some extra efforts are undergoing and just leave the PR after reviewing the PR. My impression was, ok maybe an integration test is not needed. So I merged.

@Nusnus

Nusnus commented Mar 20, 2025

Copy link
Copy Markdown
Member

@auvipy

OK, please mention in the PR that Additional work/ test is underway so that other maintainers understand that some extra efforts are undergoing and just leave the PR after reviewing the PR. My impression was, ok maybe an integration test is not needed. So I merged.

Good point! Thank you for mentioning this. You are right.
Will do!

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.

Task acks on Hard Timeout when task_acks_on_failure_or_timeout is False

4 participants