Skip to content

Conversation

n-elloco
Copy link

Currently there is no possibility to pass SSL parameters to connect to Sentinel instance and then to connect to the selected Node.

How it will work:

import arq

settings = arq.connections.RedisSettings(
    host=[('localhost', 26379)],  # sentinel host/port
    port=6379,  # node port
    database=1,
    username='redis',  # node user
    password='***',  # node password
    ssl_keyfile='/ssl/client.key',
    ssl_certfile='/ssl/client.crt',
    ssl_ca_certs='/ssl/ca.crt',
    ssl=True,
    sentinel=True,
    sentinel_kwargs=dict(
        username='sentinel',  # sentinel user
        password='***',  # sentinel password
        ssl_keyfile='/ssl/client.key',
        ssl_certfile='/ssl/client.crt',
        ssl_ca_certs='/ssl/ca.crt',
        ssl=True,
    )
)   
pool = await arq.create_pool(settings)

@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2025

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

Codecov Report

✅ All modified and coverable lines are covered by tests.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main     #506      +/-   ##
==========================================
- Coverage   96.27%   96.10%   -0.17%     
==========================================
  Files          11       11              
  Lines        1074     1079       +5     
  Branches      209      190      -19     
==========================================
+ Hits         1034     1037       +3     
- Misses         19       21       +2     
  Partials       21       21              
Files with missing lines Coverage Δ
arq/connections.py 87.50% <100.00%> (-2.57%) ⬇️

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 7a911f3...af6649b. Read the comment docs.

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

@n-elloco
Copy link
Author

@samuelcolvin @chrisguidry please, review

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