Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@JimNero009
Copy link
Contributor

Change ShutDownImminentException to inherit from BaseException instead of Exception. Consider the difference:

try:
  foo = do_long_task()
except Exception:
  foo = "fallback"

If ShutDownImminentException is raised during do_long_task(), then code will continue to execute which is against the spirit of ShutDownImminentException. It is semantically similar to something like a KeyboardInterupt, and so should be modelled like one.

Change ShutDownImminentException to inherit from BaseException instead of Exception.
@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.36%. Comparing base (2de9491) to head (131cadd).
⚠️ Report is 223 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2341      +/-   ##
==========================================
- Coverage   93.61%   93.36%   -0.26%     
==========================================
  Files          28       35       +7     
  Lines        3760     4627     +867     
==========================================
+ Hits         3520     4320     +800     
- Misses        240      307      +67     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@selwin selwin merged commit d1529cf into rq:master Dec 7, 2025
45 checks passed
@selwin
Copy link
Collaborator

selwin commented Dec 7, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants