Explorar el Código

重启 重试设置上限十分钟

由于退出程序耗时
JiahengHe hace 2 semanas
padre
commit
be8aca09e5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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