Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -39,7 +39,7 @@ public class ProtectObjectService {
|
||||
}
|
||||
|
||||
List<ProtectObject> protectObjectBatch = ListUtils.newArrayListWithExpectedSize(batchSize);
|
||||
for (ProtectObject protectObject : protectObjectList) {
|
||||
for (ProtectObject protectObject : list) {
|
||||
protectObjectBatch.add(protectObject);
|
||||
if (protectObjectBatch.size() < batchSize) {
|
||||
continue;
|
||||
|
||||
@@ -79,7 +79,7 @@ public class StateChangeService {
|
||||
return !Objects.equals(originalState, StateEnum.GENERATING.getState());
|
||||
}
|
||||
|
||||
@Scheduled(cron = "0 0/2 * * * ?")
|
||||
@Scheduled(cron = "0 0/10 * * * ?")
|
||||
@Async
|
||||
protected void finishTasks() {
|
||||
List<Long> finishedTaskIds = taskService.getFinishedTasks();
|
||||
|
||||
Reference in New Issue
Block a user