|
|
|
@ -61,9 +61,10 @@ public class RasaModelManager {
|
|
|
|
|
log.info("wakeUpInterruptServer: rasa model path {} not exist,attempt find last ...",rasaModelPath);
|
|
|
|
|
String modeParentPath = replaceDuplicateSeparator(String.join(File.separator, modelsPath, rasaModelInfo.getModelId()));
|
|
|
|
|
String fixedModePath = listLastFilePath(modeParentPath, f -> f.getName().matches("-?\\d+(\\.\\d+)?.tar.gz"));
|
|
|
|
|
Assert.notEmpty(fixedModePath,"wakeUpInterruptService: rasa model path {} not exist,attempt find last ...",rasaModelPath);
|
|
|
|
|
Assert.notEmpty(fixedModePath,"wakeUpInterruptService: no rasa model in path {} ",modeParentPath);
|
|
|
|
|
rasaRunParam.setRasaModelPath(fixedModePath);
|
|
|
|
|
}
|
|
|
|
|
log.info("wakeUpInterruptServer : use fixedModePath :{}",rasaRunParam.getRasaModelPath());
|
|
|
|
|
List<String> outMessageList = rasaCmdService.execCmd(rasaRunParam.toList(),
|
|
|
|
|
s -> StrUtil.isNotBlank(s) && s.contains(RasaConstant.RUN_SUCCESS_MESSAGE), 300);
|
|
|
|
|
|
|
|
|
|