mirror of
https://github.com/hibiken/asynq.git
synced 2025-09-16 11:32:26 +08:00
Minor improvements
This commit is contained in:
@@ -60,7 +60,7 @@ type TaskMessage struct {
|
||||
|
||||
// Stats represents a state of queues at a certain time.
|
||||
type Stats struct {
|
||||
Queued int
|
||||
Enqueued int
|
||||
InProgress int
|
||||
Scheduled int
|
||||
Retry int
|
||||
@@ -272,7 +272,7 @@ func (r *RDB) CurrentStats() (*Stats, error) {
|
||||
return nil, err
|
||||
}
|
||||
return &Stats{
|
||||
Queued: int(qlen.Val()),
|
||||
Enqueued: int(qlen.Val()),
|
||||
InProgress: int(plen.Val()),
|
||||
Scheduled: int(slen.Val()),
|
||||
Retry: int(rlen.Val()),
|
||||
|
Reference in New Issue
Block a user