Skip to content

Commit

Permalink
chore(ray): add logs for upscale failed state
Browse files Browse the repository at this point in the history
  • Loading branch information
heiruwu committed Oct 16, 2024
1 parent b118026 commit d71b5ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/worker/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ func (w *worker) TriggerModelActivity(ctx context.Context, param *TriggerModelAc
} else if *state == modelpb.State_STATE_ACTIVE && numOfActiveReplica > 0 {
break
} else if *state != modelpb.State_STATE_SCALING_UP && *state != modelpb.State_STATE_STARTING {
return w.toApplicationError(fmt.Errorf("model upscale failed"), param.ModelID, ModelActivityError)
logger.Error(fmt.Sprintf("model upscale failed: current model state: %v", state), zap.Error(err))
return w.toApplicationError(fmt.Errorf("model upscale failed: current model state: %v", state), param.ModelID, ModelActivityError)
}
}

Expand Down

0 comments on commit d71b5ac

Please sign in to comment.