mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-09-22 06:46:34 +08:00
Show deadline data in ActiveTasksTable
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user