|
|
|
@ -91,16 +91,15 @@ public class RasaModelManager {
|
|
|
|
|
|
|
|
|
|
//默认每十分钟执行一次
|
|
|
|
|
@Scheduled(cron = "${rasa.wakeup.cron:0 */10 * * * ?}")
|
|
|
|
|
public void wakeUpInterruptServerScheduled(){
|
|
|
|
|
public void wakeUpInterruptServerScheduled() {
|
|
|
|
|
log.info("wakeUpInterruptServerScheduled: Scheduled is run .... wakeUpInterruptServerRunning is :{}", wakeUpInterruptServerRunning);
|
|
|
|
|
if (wakeUpInterruptServerRunning) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
log.info("wakeUpInterruptServerScheduled: Scheduled is run .... wakeUpInterruptServerRunning is :{}",wakeUpInterruptServerRunning);
|
|
|
|
|
if (!wakeUpInterruptServerRunning){
|
|
|
|
|
wakeUpInterruptServerRunning = true;
|
|
|
|
|
wakeUpInterruptServer();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e){
|
|
|
|
|
log.error("wakeUpInterruptServerScheduled: Scheduled is run failed....",e);
|
|
|
|
|
wakeUpInterruptServerRunning = true;
|
|
|
|
|
wakeUpInterruptServer();
|
|
|
|
|
} finally {
|
|
|
|
|
wakeUpInterruptServerRunning = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|