Commit b6be5655 authored by linpeiqin's avatar linpeiqin

状态优化

parent 4610982d
...@@ -212,13 +212,8 @@ public class TuningRunServiceImpl extends BaseService<TuningRun, Long> implement ...@@ -212,13 +212,8 @@ public class TuningRunServiceImpl extends BaseService<TuningRun, Long> implement
return modelVersionTarget; return modelVersionTarget;
} }
@Transactional(rollbackFor = Exception.class)
@Override @Override
public boolean updateStatusById(TuningRun tuningRun) { public boolean updateStatusById(TuningRun tuningRun) {
ModelTask modelTask = this.modelTaskService.getById(tuningRun.getTaskId());
modelTask.setTaskStatus(tuningRun.getRunStatus());
modelTask.setCompleteTime(new Date());
modelTaskService.updateById(modelTask);
return this.updateById(tuningRun); return this.updateById(tuningRun);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment