Browse Source

重启 重试设置上限十分钟

由于退出程序耗时
JiahengHe 1 week ago
parent
commit
be8aca09e5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/robot.js

+ 2 - 2
src/robot.js

@@ -367,8 +367,8 @@ async function restartApp(param) {
         // 启动机器人
         const runResult = await run(param)
         // logger.info('??', JSON.stringify(runResult))
-        // 执行成功或超过最大重试次数
-        if (runResult || num >= 5){
+        // 执行成功或超过最大重试次数(10分钟)
+        if (runResult || num >= 610){
             break
         }
         num += 1