From d71b5ac314005dd28d0618d5a9564553cc4861db Mon Sep 17 00:00:00 2001 From: Heiru Wu Date: Wed, 16 Oct 2024 16:44:58 +0800 Subject: [PATCH] chore(ray): add logs for upscale failed state --- pkg/worker/workflow.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/worker/workflow.go b/pkg/worker/workflow.go index 4bd3cd41..5df75238 100644 --- a/pkg/worker/workflow.go +++ b/pkg/worker/workflow.go @@ -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) } }