2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-09-16 11:32:26 +08:00

Minor improvements

This commit is contained in:
Ken Hibino
2019-12-04 16:56:10 -08:00
parent 998e761660
commit afacc31990
4 changed files with 5 additions and 6 deletions

View File

@@ -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()),