[Update] Check valid time duration

This commit is contained in:
trunglt251292 2022-02-16 17:56:59 +07:00
parent 7c1ecfa89c
commit fd4283c531
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func (i Instance) RunTask(typename string, payload []byte, priority string, retr
options = append(options, asynq.MaxRetry(retryTimes))
// Task timeout
if i.Config.TaskTimeout != 0 {
if i.Config.TaskTimeout > 0 {
options = append(options, asynq.Timeout(i.Config.TaskTimeout))
}