Commit cd50a78f by 张文涛

训练营状态流转定时任务

parent 27cc9e98
package com.jiejing.bff.crontab.server.cam;
import com.jiejing.cam.api.training.TrainingCampApi;
import javax.annotation.Resource;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* @author techie
* @date 2024/4/16
*/
@Component
public class TriggerTrainingStateFlowJob {
@Resource
private TrainingCampApi trainingCampApi;
/**
* 每天凌晨2点执行
*/
@Scheduled(cron = "0 0/10 * * * ?")
public void trigger() {
trainingCampApi.triggerStateFlow();
}
}
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