[GH-ISSUE #669] No option to specify DB for Redis Sentinel URI #2360

Open
opened 2026-03-15 20:14:34 +03:00 by kerem · 0 comments
Owner

Originally created by @importnil on GitHub (Jun 12, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/669

I've come to a problem with asynqmon that I couldn't get any details from Redis with databases other than 0 when connecting through Sentinels. Turns out that the final ParseRedisURI function doesn't extract DB parameter value, e.g.:

redis-sentinel://:rfs-service:26379/3?master=mymaster

Refs:
github.com/hibiken/asynqmon@5c48e4e31d/cmd/asynqmon/main.go (LL106C32-L106C32)
github.com/hibiken/asynq@fde294be32/asynq.go (LL522C9-L522C9)

If it's not intended behaviour, would it make sense to you that I file a PR for this feature?

Originally created by @importnil on GitHub (Jun 12, 2023). Original GitHub issue: https://github.com/hibiken/asynq/issues/669 I've come to a problem with `asynqmon` that I couldn't get any details from Redis with databases other than 0 when connecting through Sentinels. Turns out that the final `ParseRedisURI` function doesn't extract DB parameter value, e.g.: ``` redis-sentinel://:rfs-service:26379/3?master=mymaster ``` Refs: https://github.com/hibiken/asynqmon/blob/5c48e4e31d6bbfe8f5ee0142ee1bc563aefaa558/cmd/asynqmon/main.go#LL106C32-L106C32 https://github.com/hibiken/asynq/blob/fde294be326a252f6fcb1d942c11c055bebeecfb/asynq.go#LL522C9-L522C9 If it's not intended behaviour, would it make sense to you that I file a PR for this feature?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2360
No description provided.