让超时时间设置成60秒

This commit is contained in:
2026-06-21 17:06:40 +08:00
parent 5f960daf78
commit 3f21f7a7d6
6 changed files with 44 additions and 14 deletions

View File

@@ -262,7 +262,7 @@ func (s *Scheduler) enqueueBatch(ctx context.Context, taskType string, cardIDs [
}
task := asynq.NewTask(taskType, payloadBytes,
asynq.MaxRetry(0),
asynq.Timeout(30*time.Second),
asynq.Timeout(60*time.Second),
asynq.Queue(constants.QueueForTaskType(taskType)),
)
if _, err := s.queueClient.Enqueue(task); err != nil {