|
@@ -253,7 +253,7 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
param.put("ryid", scenePlusService.getRyIdByNum(num));
|
|
param.put("ryid", scenePlusService.getRyIdByNum(num));
|
|
jmgaService.sendStatus(param);
|
|
jmgaService.sendStatus(param);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
- log.info("推送时间失败,param:{}", param);
|
|
|
|
|
|
+ log.info("推送事件失败,param:{}", param);
|
|
}
|
|
}
|
|
|
|
|
|
mqProducer.sendByWorkQueue(queueModelingCall, message);
|
|
mqProducer.sendByWorkQueue(queueModelingCall, message);
|
|
@@ -264,6 +264,19 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
log.error("场景计算前置处理出错,num"+num, e);
|
|
log.error("场景计算前置处理出错,num"+num, e);
|
|
// buildSceneDTService.handBaseFail("场景计算资源准备异常!", message.getPath(), message.getSceneNum(), "计算控制服务器");
|
|
// buildSceneDTService.handBaseFail("场景计算资源准备异常!", message.getPath(), message.getSceneNum(), "计算控制服务器");
|
|
this.sendFailToLaser(num);
|
|
this.sendFailToLaser(num);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> param = new HashMap<>();
|
|
|
|
+ try {
|
|
|
|
+ param.put("event_type", "排队中");
|
|
|
|
+ param.put("event_content", "计算资源准备失败");
|
|
|
|
+ param.put("scene_num", num);
|
|
|
|
+ param.put("event_time", new Date());
|
|
|
|
+ param.put("ryid", scenePlusService.getRyIdByNum(num));
|
|
|
|
+ jmgaService.sendStatus(param);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ log.info("推送事件失败,param:{}", param);
|
|
|
|
+ }
|
|
|
|
+
|
|
throw e;
|
|
throw e;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -393,6 +406,19 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
this.sendFailToLaser(sceneCode);
|
|
this.sendFailToLaser(sceneCode);
|
|
|
|
|
|
redisUtil.set(String.format(RedisKey.SCENE_BUILD_FINISH_NUM, sceneCode), "-1");
|
|
redisUtil.set(String.format(RedisKey.SCENE_BUILD_FINISH_NUM, sceneCode), "-1");
|
|
|
|
+
|
|
|
|
+ Map<String, Object> param = new HashMap<>();
|
|
|
|
+ try {
|
|
|
|
+ param.put("event_type", "计算失败");
|
|
|
|
+ param.put("event_content", "算法报错");
|
|
|
|
+ param.put("scene_num", sceneCode);
|
|
|
|
+ param.put("event_time", new Date());
|
|
|
|
+ param.put("ryid", scenePlusService.getRyIdByNum(sceneCode));
|
|
|
|
+ jmgaService.sendStatus(param);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ log.info("推送事件失败,param:{}", param);
|
|
|
|
+ }
|
|
|
|
+
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -553,10 +579,35 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
|
|
|
|
|
|
log.info("场景计算结果处理结束,场景码:{}", sceneCode);
|
|
log.info("场景计算结果处理结束,场景码:{}", sceneCode);
|
|
|
|
|
|
|
|
+ Map<String, Object> param = new HashMap<>();
|
|
|
|
+ try {
|
|
|
|
+ param.put("event_type", "计算成功");
|
|
|
|
+ param.put("event_content", "计算成功");
|
|
|
|
+ param.put("scene_num", sceneCode);
|
|
|
|
+ param.put("event_time", new Date());
|
|
|
|
+ param.put("ryid", scenePlusService.getRyIdByNum(sceneCode));
|
|
|
|
+ jmgaService.sendStatus(param);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ log.info("推送事件失败,param:{}", param);
|
|
|
|
+ }
|
|
|
|
+
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
log.error("场景计算结果处理出错,num"+sceneCode, e);
|
|
log.error("场景计算结果处理出错,num"+sceneCode, e);
|
|
// buildSceneDTService.handBaseFail("场景计算结果处理出错!", message.getPath(), sceneCode, "计算控制服务器");
|
|
// buildSceneDTService.handBaseFail("场景计算结果处理出错!", message.getPath(), sceneCode, "计算控制服务器");
|
|
this.sendFailToLaser(sceneCode);
|
|
this.sendFailToLaser(sceneCode);
|
|
|
|
+
|
|
|
|
+ Map<String, Object> param = new HashMap<>();
|
|
|
|
+ try {
|
|
|
|
+ param.put("event_type", "计算失败");
|
|
|
|
+ param.put("event_content", "计算结果处理失败");
|
|
|
|
+ param.put("scene_num", sceneCode);
|
|
|
|
+ param.put("event_time", new Date());
|
|
|
|
+ param.put("ryid", scenePlusService.getRyIdByNum(sceneCode));
|
|
|
|
+ jmgaService.sendStatus(param);
|
|
|
|
+ }catch (Exception ex){
|
|
|
|
+ log.info("推送事件失败,param:{}", param);
|
|
|
|
+ }
|
|
|
|
+
|
|
throw e;
|
|
throw e;
|
|
} finally {
|
|
} finally {
|
|
Map<String, Object> sceneStatusParam = new HashMap<>();
|
|
Map<String, Object> sceneStatusParam = new HashMap<>();
|