Commit 2a6a507c by 程裕兵

feat:auto cancel queue

parent 9f233471
package com.jiejing.bff.crontab.server.cam;
import com.jiejing.cam.api.schedule.ScheduleQueueApi;
import javax.annotation.Resource;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* 约课排队任务
*
* @author chengyubing
* @since 2024/3/7 10:56
*/
@Component
public class ScheduleQueueJob {
@Resource
private ScheduleQueueApi scheduleQueueApi;
/**
* 每1分钟执行一次
*/
@Scheduled(cron = "0 0/1 * * * ?")
public void autoRemove() {
scheduleQueueApi.autoCancel();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment