diff options
Diffstat (limited to 'backend/taskqueue/tasks.go')
| -rw-r--r-- | backend/taskqueue/tasks.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/taskqueue/tasks.go b/backend/taskqueue/tasks.go index e595d99..f4cba20 100644 --- a/backend/taskqueue/tasks.go +++ b/backend/taskqueue/tasks.go @@ -43,7 +43,11 @@ func newTaskRunTestcase( if err != nil { return nil, err } - return asynq.NewTask(string(TaskTypeRunTestcase), payload), nil + return asynq.NewTask( + string(TaskTypeRunTestcase), + payload, + asynq.MaxRetry(3), + ), nil } type TaskResult interface { |
