Skip to content

fix: Handle sentinel connection when using SpawnWorker#2327

Open
kingjan1999 wants to merge 1 commit into
rq:masterfrom
kingjan1999:2281-spawn-worker-sentinel
Open

fix: Handle sentinel connection when using SpawnWorker#2327
kingjan1999 wants to merge 1 commit into
rq:masterfrom
kingjan1999:2281-spawn-worker-sentinel

Conversation

@kingjan1999

Copy link
Copy Markdown

When using os.spawn to create a new worker, the sentinel connection is now properly recreated in the spawned process.

Writing an integration test is quite hard. It would probably require us to setup and orchestrate a sentinel instance in the CI pipeline. Please give me a hint if you think this is necessary.

Closes #2281

When using os.spawn to create a new worker,
the sentinel connection is now properly recreated
in the spawned process.

Closes rq#2281
@codecov

codecov Bot commented Nov 5, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 64.28571% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.16%. Comparing base (2de9491) to head (125ebc2).
⚠️ Report is 223 commits behind head on master.

Files with missing lines Patch % Lines
rq/worker.py 64.28% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2327      +/-   ##
==========================================
- Coverage   93.61%   93.16%   -0.46%     
==========================================
  Files          28       35       +7     
  Lines        3760     4623     +863     
==========================================
+ Hits         3520     4307     +787     
- Misses        240      316      +76     

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

@selwin

selwin commented Nov 8, 2025

Copy link
Copy Markdown
Collaborator

It would probably require us to setup and orchestrate a sentinel instance in the CI pipeline.

Would it be possible to do so reasonably easily in Github Actions? I think this would be necessary if we want Sentinel support to be stable in the long run. I also want the test coverage to be as high as possible.

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.

SpawnWorker does not work together with Redis Sentinel

2 participants