|
@@ -75,6 +75,8 @@ public class ProjectConsumer {
|
|
|
@Resource
|
|
|
IndexMapper indexMapper;
|
|
|
@Resource
|
|
|
+ TaskMapper taskMapper;
|
|
|
+ @Resource
|
|
|
TaskManager taskManager;
|
|
|
@Resource
|
|
|
ProjectManager projectManager;
|
|
@@ -109,6 +111,10 @@ public class ProjectConsumer {
|
|
|
}
|
|
|
String projectPath = linuxTempPath + "project/" + projectId + "/";
|
|
|
FileUtil.mkdir(projectPath);
|
|
|
+
|
|
|
+ taskMapper.deleteByProject(projectId);
|
|
|
+ indexMapper.deleteFirstTargetScoreByProjectId(projectId);
|
|
|
+ indexMapper.deleteLastTargetScoreByProjectId(projectId);
|
|
|
|
|
|
|
|
|
List<ScenePO> scenePOList = projectService.getSceneList(projectId, packageId, projectPath);
|
|
@@ -355,7 +361,8 @@ public class ProjectConsumer {
|
|
|
* @param projectRunningKey projectRunningKey
|
|
|
*/
|
|
|
@SneakyThrows
|
|
|
- public void parseProject(ProjectMessageDTO projectMessageDTO, String projectWaitingKey, String projectRunningKey, String userId) {
|
|
|
+ public void parseProject(ProjectMessageDTO projectMessageDTO, String projectWaitingKey, String projectRunningKey,
|
|
|
+ String userId) {
|
|
|
String projectId = projectMessageDTO.getProjectId();
|
|
|
String projectType = projectMessageDTO.getType();
|
|
|
int currentParallelism = projectMessageDTO.getCurrentParallelism();
|
|
@@ -365,7 +372,7 @@ public class ProjectConsumer {
|
|
|
String algorithmId = projectMessageDTO.getAlgorithmId();
|
|
|
String projectPath = linuxTempPath + "project/" + projectId + "/";
|
|
|
|
|
|
- projectService.prepare(projectMessageDTO, projectWaitingKey, projectRunningKey);
|
|
|
+
|
|
|
|
|
|
List<String> taskJsonList = FileUtil.listAbsolutePathByType(projectPath, "json");
|
|
|
int taskTotal = taskJsonList.size();
|