feat(1.4.0-beta1): 1. 恢复代码
This commit is contained in:
parent
5f242ddc28
commit
93eed6c9cd
@ -86,13 +86,13 @@ public class CleanerSchedule extends AbstractSchedule implements Lifecycle {
|
|||||||
protected void doExecute() {
|
protected void doExecute() {
|
||||||
try {
|
try {
|
||||||
// 清除日志默认保存天数大于零、最少保留最近一天的日志数据
|
// 清除日志默认保存天数大于零、最少保留最近一天的日志数据
|
||||||
// if (systemProperties.getLogStorage() <= 1) {
|
if (systemProperties.getLogStorage() <= 1) {
|
||||||
// SnailJobLog.LOCAL.error("retry clear log storage error", systemProperties.getLogStorage());
|
SnailJobLog.LOCAL.error("retry clear log storage error", systemProperties.getLogStorage());
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// clean retry log
|
// clean retry log
|
||||||
LocalDateTime endTime = LocalDateTime.now();
|
LocalDateTime endTime = LocalDateTime.now().minusDays(systemProperties.getLogStorage());
|
||||||
long total = PartitionTaskUtils.process(startId -> retryTaskBatchList(startId, endTime),
|
long total = PartitionTaskUtils.process(startId -> retryTaskBatchList(startId, endTime),
|
||||||
this::processRetryLogPartitionTasks, 0);
|
this::processRetryLogPartitionTasks, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user