|
|
|
|
@ -181,6 +181,9 @@ public class XxlJobAdminBootstrap implements InitializingBean, DisposableBean {
|
|
|
|
|
@Value("${xxl.job.triggerpool.slow.max}")
|
|
|
|
|
private int triggerPoolSlowMax;
|
|
|
|
|
|
|
|
|
|
@Value("${xxl.job.schedule.batchsize}")
|
|
|
|
|
private int scheduleBatchSize;
|
|
|
|
|
|
|
|
|
|
@Value("${xxl.job.logretentiondays}")
|
|
|
|
|
private int logretentiondays;
|
|
|
|
|
|
|
|
|
|
@ -244,6 +247,13 @@ public class XxlJobAdminBootstrap implements InitializingBean, DisposableBean {
|
|
|
|
|
return triggerPoolSlowMax;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getScheduleBatchSize() {
|
|
|
|
|
if (!(scheduleBatchSize >=50 && scheduleBatchSize <= 500)) {
|
|
|
|
|
return 100;
|
|
|
|
|
}
|
|
|
|
|
return scheduleBatchSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getLogretentiondays() {
|
|
|
|
|
if (logretentiondays < 3) {
|
|
|
|
|
return -1; // Limit greater than or equal to 3, otherwise close
|
|
|
|
|
|