[MISC] Refine no available block debug msg (#15076)

Signed-off-by: Yi Liu <yiliu4@habana.ai>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Co-authored-by: Yi Liu <yiliu4@habana.ai>
This commit is contained in:
Yi Liu 2025-03-25 00:01:10 +08:00 committed by GitHub
parent 0893567db9
commit 9cc645141d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -357,8 +357,11 @@ class MessageQueue:
# if we wait for a long time, log a message
if (time.monotonic() - start_time
> VLLM_RINGBUFFER_WARNING_INTERVAL * n_warning):
logger.debug("No available block found in %s second. ",
VLLM_RINGBUFFER_WARNING_INTERVAL)
logger.debug(
("No available shared memory broadcast block found"
" in %s second."),
VLLM_RINGBUFFER_WARNING_INTERVAL,
)
n_warning += 1
# if we time out, raise an exception
@ -415,8 +418,11 @@ class MessageQueue:
# if we wait for a long time, log a message
if (time.monotonic() - start_time
> VLLM_RINGBUFFER_WARNING_INTERVAL * n_warning):
logger.debug("No available block found in %s second. ",
VLLM_RINGBUFFER_WARNING_INTERVAL)
logger.debug(
("No available shared memory broadcast block found"
"in %s second."),
VLLM_RINGBUFFER_WARNING_INTERVAL,
)
n_warning += 1
# if we time out, raise an exception