Unverified Commit 2b102d51 authored by Nick Hill's avatar Nick Hill Committed by GitHub
Browse files

[BugFix] Fix incorrect metrics shutdown error log message (#18992)


Signed-off-by: default avatarNick Hill <nhill@redhat.com>
parent aa54a7bf
......@@ -69,9 +69,13 @@ def unregister_vllm_metrics():
def shutdown_prometheus():
"""Shutdown prometheus metrics."""
path = _prometheus_multiproc_dir
if path is None:
return
try:
pid = os.getpid()
multiprocess.mark_process_dead(pid)
multiprocess.mark_process_dead(pid, path)
logger.debug("Marked Prometheus metrics for process %d as dead", pid)
except Exception as e:
logger.error("Error during metrics cleanup: %s", str(e))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment