调度触发线程池配置优化

This commit is contained in:
xuxueli 2018-09-22 23:08:41 +08:00
parent 88b0812b61
commit 1e1d9e85e6
2 changed files with 7 additions and 8 deletions

View File

@ -21,11 +21,11 @@ public class JobTriggerPoolHelper {
// ---------------------- trigger pool ----------------------
private ThreadPoolExecutor triggerPool = new ThreadPoolExecutor(
20,
50,
200,
60L,
30L,
TimeUnit.SECONDS,
new LinkedBlockingQueue<Runnable>(100000),
new LinkedBlockingQueue<Runnable>(1000),
new ThreadPoolExecutor.CallerRunsPolicy());
@ -49,7 +49,6 @@ public class JobTriggerPoolHelper {
private static JobTriggerPoolHelper helper = new JobTriggerPoolHelper();
/**
*
* @param jobId
* @param failRetryCount
* >=0: use this param

View File

@ -178,7 +178,7 @@ public class TriggerCallbackThread {
}
// ---------------------- fial-callback file TODO ----------------------
// ---------------------- fail-callback file ----------------------
private static String failCallbackFileName = XxlJobFileAppender.getLogPath().concat(File.separator).concat("xxl-job-callback").concat(".log");