Skip to content

Commit

Permalink
bk-shader-tool的异常状态处理完善,issue: #97
Browse files Browse the repository at this point in the history
  • Loading branch information
tbs60 committed Jul 27, 2023
1 parent 7574da3 commit b9494d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/backend/booster/bk_dist/shadertool/pkg/shadertool.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,10 @@ func (h *ShaderTool) executeShaders(ctx context.Context) error {
// blog.Debugf("ShaderTool: main loop tick")
err := h.tryExecuteActions(ctx)
if err != nil && err != ErrorNoActionsToRun {
blog.Errorf("ShaderTool: failed to execute shader actions with error:%v", err)
return err
blog.Errorf("ShaderTool: failed to execute shader actions with error:%v,exit now", err)
h.ReleaseResource()
h.commitSuicide()
// return err
}
}
}
Expand Down

0 comments on commit b9494d6

Please sign in to comment.