mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-23 01:00:17 +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)
|
fmt.Printf("Paused: %t\n\n", info.Paused)
|
||||||
bold.Println("Task Count by State")
|
bold.Println("Task Count by State")
|
||||||
printTable(
|
printTable(
|
||||||
[]string{"active", "pending", "scheduled", "retry", "archived"},
|
[]string{"active", "pending", "scheduled", "retry", "archived", "completed"},
|
||||||
func(w io.Writer, tmpl string) {
|
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()
|
fmt.Println()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user