package cn.com.poc.agent_application.scheduler;


import cn.com.poc.expose.aggregate.AgentApplicationExposeService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class RecommendQuestionScheduler {

    @Resource
    private AgentApplicationExposeService agentApplicationExposeService;

    /**
     * 每10分钟生成
     *
     * @throws Exception
     */
    @Scheduled(cron = "0 10 * * * ?")
    public void knowledgeInfoStatusUpdateScheduler() {
        agentApplicationExposeService.createRecommendQuestion();
    }
}
