mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 13:44:58 +08:00
[Core] print error before deadlock (#3459)
This commit is contained in:
parent
b37cdce2b1
commit
6a9c583e73
@ -33,8 +33,17 @@ try:
|
||||
return getattr(self.worker, name)
|
||||
|
||||
def execute_method(self, method, *args, **kwargs):
|
||||
executor = getattr(self, method)
|
||||
return executor(*args, **kwargs)
|
||||
try:
|
||||
executor = getattr(self, method)
|
||||
return executor(*args, **kwargs)
|
||||
except Exception as e:
|
||||
# exceptions in ray worker may cause deadlock
|
||||
# see https://github.com/vllm-project/vllm/issues/3455
|
||||
# print the error and inform the user to solve the error
|
||||
msg = (f"Error executing method {method}. "
|
||||
"This might cause deadlock in distributed execution.")
|
||||
logger.exception(msg)
|
||||
raise e
|
||||
|
||||
def get_node_ip(self) -> str:
|
||||
return get_ip()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user