Allow filtering results of asynqmon ls enqueued by providing queue

name
This commit is contained in:
Ken Hibino
2020-01-10 21:32:15 -08:00
parent cf78a12866
commit 2631672575
4 changed files with 101 additions and 22 deletions

View File

@@ -6,6 +6,7 @@
package base
import (
"strings"
"time"
"github.com/rs/xid"
@@ -29,7 +30,7 @@ const (
// QueueKey returns a redis key string for the given queue name.
func QueueKey(qname string) string {
return QueuePrefix + qname
return QueuePrefix + strings.ToLower(qname)
}
// ProcessedKey returns a redis key string for procesed count