修复bug
This commit is contained in:
parent
259f35f5d9
commit
7f56bebc86
@ -100,11 +100,11 @@ public class AsyncModelServiceService {
|
||||
if (aigcRespVO.isSuccess()){
|
||||
updateObj.setStatus(2);
|
||||
}else {
|
||||
updateObj.setStatus(5);
|
||||
updateObj.setStatus(3);
|
||||
}
|
||||
modelServiceMapper.updateById(updateObj);
|
||||
}catch(Exception e){
|
||||
updateObj.setStatus(5);
|
||||
updateObj.setStatus(3);
|
||||
modelServiceMapper.updateById(updateObj);
|
||||
};
|
||||
}
|
||||
@ -117,13 +117,13 @@ public class AsyncModelServiceService {
|
||||
// Thread.sleep(30000);
|
||||
AigcRespVO aigcRespVO = trainHttpService.modelUndeploy(new HashMap<>(), modelServiceDO.getJobId());
|
||||
if (aigcRespVO.isSuccess()){
|
||||
updateObj.setStatus(3);
|
||||
updateObj.setStatus(0);
|
||||
}else {
|
||||
updateObj.setStatus(5);
|
||||
updateObj.setStatus(3);
|
||||
}
|
||||
modelServiceMapper.updateById(updateObj);
|
||||
}catch(Exception e){
|
||||
updateObj.setStatus(5);
|
||||
updateObj.setStatus(3);
|
||||
modelServiceMapper.updateById(updateObj);
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user