mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #498] [BUG] Cli tool can't show dashboard. #2253
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#2253
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 @jaekook-neonesia on GitHub (Jun 22, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/498
Originally assigned to: @hibiken on GitHub.
Describe the bug
Cli tool can't show a dashboard when the password was required.
To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):
./asynq dash -p *******
Result
=== Queues ===
active=▇ pending=▇ aggregating=▇ scheduled=▇ retry=▇ archived=▇ completed=▇
Queue State Size Latency MemoryUsage Processed Failed ErrorRate
NOAUTH Authentication required.
Expected behavior
Showing a dashboard
Environment (please complete the following information):
Additional context
I checked the cli source code,
inspector hard coded RedisClientOpt.
func Run(opts Options) {
s, err := tcell.NewScreen()
if err != nil {
fmt.Printf("failed to create a screen: %v\n", err)
os.Exit(1)
}
if err := s.Init(); err != nil {
fmt.Printf("failed to initialize screen: %v\n", err)
os.Exit(1)
}
s.SetStyle(baseStyle) // set default text style