This commit is contained in:
2025-01-26 02:21:27 +08:00
parent 7bd9a7507f
commit 1b11342e5d
32 changed files with 310 additions and 133 deletions

View File

@ -85,12 +85,12 @@ public class DynamicTaskGenerator {
public static void addTask(Long faceSampleId) {
Date createTime = new Date();
// 分钟后
// 分钟后
createTime.setTime(createTime.getTime() + 30000L);
queue.add(new Task(faceSampleId, createTime));
}
@Scheduled(fixedRate = 10000L)
@Scheduled(fixedDelay = 500L)
public void doTask() {
Task task = queue.poll();
if (task == null) {