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