|
@@ -59,7 +59,7 @@ public class FaceVerifyJobHandler {
|
|
examRecordDataIds.addAll(moreExamRecordDataIds);
|
|
examRecordDataIds.addAll(moreExamRecordDataIds);
|
|
|
|
|
|
if (CollectionUtils.isEmpty(examRecordDataIds)) {
|
|
if (CollectionUtils.isEmpty(examRecordDataIds)) {
|
|
- log.warn("分片任务_FACE_{}_{} 暂无待处理记录!", shardTotal, shardIndex);
|
|
|
|
|
|
+ log.warn("分片任务_人脸比对_{}_{} 暂无待处理记录!", shardTotal, shardIndex);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -67,12 +67,12 @@ public class FaceVerifyJobHandler {
|
|
Set<Long> todoIds = new HashSet<>(examRecordDataIds);
|
|
Set<Long> todoIds = new HashSet<>(examRecordDataIds);
|
|
List<ExamCaptureQueueEntity> todoQueues = examCaptureQueueRepo.findByExamRecordDataIdIn(todoIds);
|
|
List<ExamCaptureQueueEntity> todoQueues = examCaptureQueueRepo.findByExamRecordDataIdIn(todoIds);
|
|
if (CollectionUtils.isEmpty(todoQueues)) {
|
|
if (CollectionUtils.isEmpty(todoQueues)) {
|
|
- log.warn("分片任务_FACE_{}_{} 暂无待处理队列记录!", shardTotal, shardIndex);
|
|
|
|
|
|
+ log.warn("分片任务_人脸比对_{}_{} 暂无待处理队列记录!", shardTotal, shardIndex);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
long queryCost = System.currentTimeMillis() - startTime;
|
|
long queryCost = System.currentTimeMillis() - startTime;
|
|
- log.warn("分片任务_FACE_{}_{} 本次处理考试记录数:{} 待比对照片数:{} firstCount:{} moreCount:{} cost:{}ms",
|
|
|
|
|
|
+ log.warn("分片任务_人脸比对_{}_{} 本次处理考试记录数:{} 待比对照片数:{} firstCount:{} moreCount:{} cost:{}ms",
|
|
shardTotal, shardIndex, todoIds.size(), todoQueues.size(), firstCount, moreCount, queryCost);
|
|
shardTotal, shardIndex, todoIds.size(), todoQueues.size(), firstCount, moreCount, queryCost);
|
|
Map<Long, List<ExamCaptureQueueEntity>> maps = todoQueues.stream().collect(Collectors.groupingBy(ExamCaptureQueueEntity::getExamRecordDataId));
|
|
Map<Long, List<ExamCaptureQueueEntity>> maps = todoQueues.stream().collect(Collectors.groupingBy(ExamCaptureQueueEntity::getExamRecordDataId));
|
|
|
|
|
|
@@ -109,7 +109,7 @@ public class FaceVerifyJobHandler {
|
|
}
|
|
}
|
|
|
|
|
|
long allCost = Math.max((System.currentTimeMillis() - startTime) / 1000, 1);
|
|
long allCost = Math.max((System.currentTimeMillis() - startTime) / 1000, 1);
|
|
- log.warn("分片任务_FACE_{}_{} 本次处理比对照片数:{} 成功数:{} 约{}个每秒 threadNum:{} cost:{}s",
|
|
|
|
|
|
+ log.warn("分片任务_人脸比对_{}_{} 本次处理比对照片数:{} 成功数:{} 约{}个每秒 threadNum:{} cost:{}s",
|
|
shardTotal, shardIndex, todoQueues.size(), successCount.get(), (float) todoQueues.size() / allCost,
|
|
shardTotal, shardIndex, todoQueues.size(), successCount.get(), (float) todoQueues.size() / allCost,
|
|
param.getMaxThreadNum(), allCost);
|
|
param.getMaxThreadNum(), allCost);
|
|
|
|
|