Skip to content

Commit dd32f1c

Browse files
nirrozenbaumrlakhtakia
authored andcommitted
fixed error message in scheduler when no pods are available (#759)
Signed-off-by: Nir Rozenbaum <[email protected]>
1 parent 9cc0ec7 commit dd32f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/epp/scheduling/scheduler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (s *Scheduler) Schedule(ctx context.Context, req *types.LLMRequest) (*types
110110

111111
pods := s.runFilterPlugins(sCtx)
112112
if len(pods) == 0 {
113-
return nil, errutil.Error{Code: errutil.InferencePoolResourceExhausted, Msg: "failed to find a target pod"}
113+
return nil, errutil.Error{Code: errutil.Internal, Msg: "no pods available for the given request"}
114114
}
115115
// if we got here, there is at least one pod to score
116116
weightedScorePerPod := s.runScorerPlugins(sCtx, pods)

0 commit comments

Comments
 (0)