mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-22 16:50:18 +08:00
(cli): Update queue inspect command to show completed task count
This commit is contained in:
parent
9959c25ca8
commit
8505ad4c87
@ -148,9 +148,9 @@ func printQueueInfo(info *asynq.QueueInfo) {
|
||||
fmt.Printf("Paused: %t\n\n", info.Paused)
|
||||
bold.Println("Task Count by State")
|
||||
printTable(
|
||||
[]string{"active", "pending", "scheduled", "retry", "archived"},
|
||||
[]string{"active", "pending", "scheduled", "retry", "archived", "completed"},
|
||||
func(w io.Writer, tmpl string) {
|
||||
fmt.Fprintf(w, tmpl, info.Active, info.Pending, info.Scheduled, info.Retry, info.Archived)
|
||||
fmt.Fprintf(w, tmpl, info.Active, info.Pending, info.Scheduled, info.Retry, info.Archived, info.Completed)
|
||||
},
|
||||
)
|
||||
fmt.Println()
|
||||
|
Loading…
x
Reference in New Issue
Block a user