aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/taskqueue/tasks.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-15 22:53:50 +0900
committernsfisis <nsfisis@gmail.com>2025-03-15 22:53:50 +0900
commita77463e602ffe71001d316cca1100c87cde085f3 (patch)
tree8c5e425491739739fd69d47e2bc6c696a838f666 /backend/taskqueue/tasks.go
parent230481b9885b04135d4014e5b15d93b6336eb420 (diff)
downloadphperkaigi-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.go6
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 {