Skip to content

Commit

Permalink
store
Browse files Browse the repository at this point in the history
  • Loading branch information
lowang-bh committed Jul 20, 2024
1 parent bdfb40c commit 746d036
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/scheduler/plugins/extender/extender.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ func (ep *extenderPlugin) OnSessionOpen(ssn *framework.Session) {
if len(resp.ErrorMessage) == 0 {
return nil
}
// keep compatibility with old behavior: error messages length is not zero
// but didn't return a code, and code will be 0 for default. Change code to zero for corresponding
if resp.Code == api.Success {
resp.Code = api.Error
}
return api.NewFitErrWithStatus(task, node, &api.Status{Code: resp.Code, Reason: resp.ErrorMessage, Plugin: PluginName})
})
}
Expand Down

0 comments on commit 746d036

Please sign in to comment.