Skip to content

Conversation

@ykvch
Copy link

@ykvch ykvch commented Nov 8, 2025

Read Worker class attibutes (settings) from partent classes.
This way one may write base worker to settings as:

class BaseSettings:
    on_startup = startup
    on_shutdown = shutdown

class WorkerSettings(BaseSettings):
    functions = [download_content]

and allow multiple workers to reuse base settings.

Read Worker class attibutes (settings) from partent classes
@ykvch ykvch changed the title Allow worker setting inheritance Allow worker settings inheritance Nov 8, 2025
@ykvch ykvch changed the title Allow worker settings inheritance Allow WorkerSettings inheritance Nov 8, 2025
@codecov-commenter
Copy link

codecov-commenter commented Nov 8, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
arq/worker.py 33.33% 1 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main     #511      +/-   ##
==========================================
- Coverage   96.27%   95.82%   -0.45%     
==========================================
  Files          11       11              
  Lines        1074     1079       +5     
  Branches      209      192      -17     
==========================================
  Hits         1034     1034              
- Misses         19       22       +3     
- Partials       21       23       +2     
Files with missing lines Coverage Δ
arq/worker.py 96.77% <33.33%> (-0.40%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e3295b...2553e32. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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