添加TODO稍后需要检查逻辑

This commit is contained in:
even 2025-05-19 15:29:10 +08:00
parent ab924c0e6b
commit bef7b6e0ba

View File

@ -109,12 +109,13 @@ public abstract class BaseRunContext {
end = true; end = true;
} }
} }
if (!end) { if (end) {
throw new ServiceException(GlobalErrorCodeConstants.PIPELINE_ERROR.getCode(),"状态有误"); this.changeContextState(ContextStateEnum.getByCode(result));
} }
} }
/** /**
* 查找子类是否全部就绪如果子类全部完成则父类也就绪 * 查找子类是否全部就绪如果子类全部完成则父类也就绪
* TODO 逻辑可能有点问题
* */ * */
public void checkChildReady() throws ServiceException{ public void checkChildReady() throws ServiceException{
int result = ContextStateEnum.READY.getCode(); int result = ContextStateEnum.READY.getCode();
@ -139,6 +140,7 @@ public abstract class BaseRunContext {
} }
/** /**
* 查找子类是否存在开始运行的如果有则父状态变成running * 查找子类是否存在开始运行的如果有则父状态变成running
* TODO 逻辑可能有点问题
* */ * */
public void checkChildRunning() throws ServiceException{ public void checkChildRunning() throws ServiceException{
Boolean runningFlag = false; Boolean runningFlag = false;