Skip to content

Commit 6946b89

Browse files
committed
Update unhealthy unload message
1 parent 33367f6 commit 6946b89

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ci/L0_check_health_vllm/check_health_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_vllm_not_healthy(self):
108108
self._assert_model_ready(True)
109109
# The 2nd infer should begin with health check failed
110110
self._llm_infer()
111-
self._assert_infer_exception("vLLM engine is not healthy")
111+
self._assert_infer_exception("vLLM engine is not healthy and will be unloaded")
112112
self._assert_model_ready(False)
113113
# The 3rd infer should have model not found
114114
self._llm_infer()

src/model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,9 @@ def _check_health(self, requests):
558558
try:
559559
future.result()
560560
except Exception as e:
561-
self.logger.log_error(f"[vllm] Engine is not healthy: {e}")
561+
self.logger.log_error(
562+
f"[vllm] Engine is not healthy and will be unloaded: {e}"
563+
)
562564
pb_utils.unload_model(self.model_config["name"]) # non-blocking
563565
self._is_healthy = False
564566
if not self._is_healthy:

0 commit comments

Comments
 (0)