名片加定位日志
This commit is contained in:
@@ -210,14 +210,16 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
// 获取许可 - 如果没有可用许可会阻塞等待
|
||||
// 修改为带超时的获取许可方式,超时时间为1分钟
|
||||
if (!semaphore.tryAcquire(5, TimeUnit.MINUTES)) {
|
||||
log.info("istimeout画像业务场景");
|
||||
log.warn("获取许可超时,跳过执行任务");
|
||||
return;
|
||||
}
|
||||
|
||||
log.info("is timeout 画像业务场景");
|
||||
CompletableFuture.runAsync(() -> {
|
||||
ZonedDateTime zonedDateTime = ZonedDateTime.parse(item.getNameplateEndTime().toString());
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
String formattedDateStartTime = zonedDateTime.format(formatter);
|
||||
log.info("getNameplateEndTime");
|
||||
//"analysisScene": "分析类型", // 1、企微会话 2、AI通话录音 3、AI铭牌(客流) 4、AI铭牌(试驾)
|
||||
DiFyReq diFyImageReq2 = new DiFyReq();
|
||||
diFyImageReq2.setUser(ConstantStr.corpus_user);
|
||||
@@ -239,7 +241,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
}, executor);
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("执行Dify失败: customerFlowId={}, 错误信息: {}",
|
||||
log.error("DifyFailure: customerFlowId={}, 错误信息: {}",
|
||||
item.getCustomerFlowId(), e.getMessage(), e);
|
||||
} finally {
|
||||
// 释放许可
|
||||
|
||||
Reference in New Issue
Block a user