mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-10-03 10:42:00 +08:00
Update conversion_helper
This commit is contained in:
@@ -190,7 +190,7 @@ func taskTTL(task *asynq.TaskInfo) time.Duration {
|
|||||||
if task.State != asynq.TaskStateCompleted {
|
if task.State != asynq.TaskStateCompleted {
|
||||||
return 0 // N/A
|
return 0 // N/A
|
||||||
}
|
}
|
||||||
return task.CompletedAt.Add(task.ResultTTL).Sub(time.Now())
|
return task.CompletedAt.Add(task.Retention).Sub(time.Now())
|
||||||
}
|
}
|
||||||
|
|
||||||
// formatTimeInRFC3339 formats t in RFC3339 if the value is non-zero.
|
// formatTimeInRFC3339 formats t in RFC3339 if the value is non-zero.
|
||||||
|
Reference in New Issue
Block a user