Show deadline data in ActiveTasksTable

This commit is contained in:
Ken Hibino
2021-01-27 16:16:38 -08:00
parent 3c43624927
commit ae7e0730bc
4 changed files with 18 additions and 7 deletions

View File

@@ -102,6 +102,12 @@ type ActiveTask struct {
// a worker started working on the task only a few moments ago, and started time
// data is not available.
Started string `json:"start_time"`
// Deadline indicates the time by which the worker needs to finish its task.
//
// Value is either time formatted in RFC3339 format, or "-" which indicates that
// the data is not available yet.
Deadline string `json:"deadline"`
}
func toActiveTask(t *asynq.ActiveTask) *ActiveTask {