mirror of
https://github.com/wassname/ray.git
synced 2026-08-09 12:20:09 +08:00
Check version info in ray start for non-head nodes. (#1264)
* Check version info in ray start for non-head nodes. * Small fix. * Fix * Push error to all drivers when worker has version mismatch. * Linting * Linting * Fix * Unify methods. * Fix bug.
This commit is contained in:
committed by
Philipp Moritz
parent
2c0d5544ac
commit
c1496b8111
+5
-4
@@ -15,7 +15,8 @@ import ray.local_scheduler
|
||||
import ray.signature as signature
|
||||
import ray.worker
|
||||
from ray.utils import (binary_to_hex, FunctionProperties, random_string,
|
||||
release_gpus_in_use, select_local_scheduler, is_cython)
|
||||
release_gpus_in_use, select_local_scheduler, is_cython,
|
||||
push_error_to_driver)
|
||||
|
||||
|
||||
def random_actor_id():
|
||||
@@ -252,9 +253,9 @@ def fetch_and_register_actor(actor_class_key, worker):
|
||||
# traceback and notify the scheduler of the failure.
|
||||
traceback_str = ray.worker.format_error_message(traceback.format_exc())
|
||||
# Log the error message.
|
||||
worker.push_error_to_driver(driver_id, "register_actor_signatures",
|
||||
traceback_str,
|
||||
data={"actor_id": actor_id_str})
|
||||
push_error_to_driver(worker.redis_client, "register_actor_signatures",
|
||||
traceback_str, driver_id,
|
||||
data={"actor_id": actor_id_str})
|
||||
# TODO(rkn): In the future, it might make sense to have the worker exit
|
||||
# here. However, currently that would lead to hanging if someone calls
|
||||
# ray.get on a method invoked on the actor.
|
||||
|
||||
Reference in New Issue
Block a user