Browse Source

调整失败重试次数到10次,执行超时时间为5秒

wangq 4 years ago
parent
commit
cb6bca1fbb

+ 2 - 2
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/JobInfoController.java

@@ -148,8 +148,8 @@ public class JobInfoController {
         xxlJobInfo.setAuthor(author);
         xxlJobInfo.setExecutorParam(executorParam);
         xxlJobInfo.setGlueRemark("创建定时任务结束");
-        xxlJobInfo.setExecutorTimeout(2);
-        xxlJobInfo.setExecutorFailRetryCount(3);        // 失败重试次数
+        xxlJobInfo.setExecutorTimeout(5);
+        xxlJobInfo.setExecutorFailRetryCount(10);        // 失败重试次数
         //xxlJobInfo.setAlarmEmail();
 
         ReturnT<String> addT = xxlJobService.add(xxlJobInfo);