diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-15 22:53:50 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-15 22:53:50 +0900 |
| commit | a77463e602ffe71001d316cca1100c87cde085f3 (patch) | |
| tree | 8c5e425491739739fd69d47e2bc6c696a838f666 /backend/taskqueue/tasks.go | |
| parent | 230481b9885b04135d4014e5b15d93b6336eb420 (diff) | |
| download | phperkaigi-2025-albatross-a77463e602ffe71001d316cca1100c87cde085f3.tar.gz phperkaigi-2025-albatross-a77463e602ffe71001d316cca1100c87cde085f3.tar.zst phperkaigi-2025-albatross-a77463e602ffe71001d316cca1100c87cde085f3.zip | |
feat(backend): decrease max retry of testcases
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 { |
