8000 Correct the error description in exception message when validate soft_time_limit by narasux · Pull Request #9246 · celery/celery · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Correct the error description in exception message when validate soft_time_limit #9246

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

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

narasux
Copy link
Contributor
@narasux narasux commented Sep 9, 2024

Description

I noticed that in PR #9173 a check was added to ensure that soft_time_limit must be less than or equal to time_limit. However, the current exception message conflicts with the checking logic and may mislead Celery users. So I submitting a PR to correct these.

Copy link
Member
@Nusnus Nusnus left a comment

Choose a reason for hiding this comment

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

Good catch!
We missed it during review.

Thanks!

Copy link
codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.01%. Comparing base (33c78f0) to head (0e81853).
Report is 109 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9246   +/-   ##
=======================================
  Coverage   78.01%   78.01%           
=======================================
  Files         150      150           
  Lines       18828    18828           
  Branches     3221     3221           
=======================================
  Hits        14689    14689           
  Misses       3835     3835           
  Partials      304      304           
Flag Coverage Δ
unittests 77.99% <100.00%> (ø)

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 merged commit 21f73b8 into celery:main Sep 9, 2024
82 of 86 checks passed
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.

3 participants
0