Browse Source

增加最大重试次数

Pchen0 3 hours ago
parent
commit
775e7d251b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Lepao/Worker.js

+ 1 - 1
lib/Lepao/Worker.js

@@ -45,7 +45,7 @@ class Worker {
 
         this.channelName = 'lepao_worker'
 
-        this.maxRetry = 3
+        this.maxRetry = 5
         /** 单次学校接口 HTTP 超时(用于 this.request 内部) */
         this.httpTimeoutMs = 30000
         /** 单个 MQ 任务总超时(覆盖 startRun 多阶段 + 重试) */