WIP:(ui): Add CompletedTasksTable

This commit is contained in:
Ken Hibino
2021-10-15 11:36:45 -07:00
parent 41d42c6f73
commit bac72f522c
7 changed files with 496 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ type queueStateSnapshot struct {
Scheduled int `json:"scheduled"`
Retry int `json:"retry"`
Archived int `json:"archived"`
Completed int `json:"completed"`
// Total number of tasks processed during the given date.
// The number includes both succeeded and failed tasks.
@@ -91,6 +92,7 @@ func toQueueStateSnapshot(s *asynq.QueueInfo) *queueStateSnapshot {
Scheduled: s.Scheduled,
Retry: s.Retry,
Archived: s.Archived,
Completed: s.Completed,
Processed: s.Processed,
Succeeded: s.Processed - s.Failed,
Failed: s.Failed,