主动建thread
This commit is contained in:
parent
1ba4e6a9c3
commit
ee7249d63b
@ -123,10 +123,8 @@ public class VideoPieceGetter {
|
||||
})
|
||||
.collect(Collectors.groupingBy(FaceSampleEntity::getDeviceId))
|
||||
.values();
|
||||
collection
|
||||
.stream()
|
||||
.parallel()
|
||||
.forEach(faceSampleList -> {
|
||||
collection.forEach(faceSampleList -> {
|
||||
new Thread(() -> {
|
||||
faceSampleList.parallelStream().forEach(faceSample -> {
|
||||
DeviceEntity device = deviceRepository.getDevice(faceSample.getDeviceId());
|
||||
DeviceConfigEntity config = deviceRepository.getDeviceConfig(faceSample.getDeviceId());
|
||||
@ -254,6 +252,7 @@ public class VideoPieceGetter {
|
||||
}
|
||||
}
|
||||
});
|
||||
}).start();
|
||||
});
|
||||
if (task.faceId != null) {
|
||||
taskStatusBiz.setFaceCutStatus(task.faceId, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user