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

Skip to content

Conversation

@kingjan1999
Copy link

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
Copy link

codecov bot commented Nov 5, 2025

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
Copy link
Collaborator

selwin commented Nov 8, 2025

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