mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 15:35:55 +03:00
[GH-ISSUE #583] RedisFailoverClientOpt doesn't have SentinelUsername field #1297
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#1297
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @khasanovbi on GitHub (Dec 6, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/583
Originally assigned to: @hibiken on GitHub.
RedisFailoverClientOpt doesn't have SentinelUsername field
@vernonr3 commented on GitHub (Jan 6, 2023):
Hello Ken (@hibiken)
Fix this issue in one sense is simply about adding the SentinelUsername to the struct. However in doing this a number of underlying issues are exposed:
What is the policy here? Should we fix it on a "simple" basis - or make the fix more complex by working to improve the rest of the testing code? I'm wondering how big an issue this is for the user community?
Thanks
@shuqingzai commented on GitHub (Nov 15, 2023):
Can this problem be fixed in the near future? @hibiken
We are using sentinel mode but cannot configure SentinelUsername in asynq
@Skwol commented on GitHub (Oct 25, 2024):
Added PR for this issue.
Since asynq uses
github.com/redis/go-redis/v9you can create your own options as a workaround. It will look like that:@kamikazechaser commented on GitHub (Oct 26, 2024):
I also recommend this. Gives users a lot more flexibility. It was a lesser known possibility so I added it to the documentation last week.
https://github.com/hibiken/asynq/wiki/Getting-Started#reuse-an-existing-go-redis-connection-pool
As for this issue specifically, I think we can just add the field to the struct and more complex redis connection setups can use a similar approach above.