mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 21:23:10 +08:00
[Core] Ensure global state is connected when exception hook is called from the driver. (#12655)
This commit is contained in:
@@ -853,6 +853,7 @@ def custom_excepthook(type, value, tb):
|
||||
worker_type = ray.gcs_utils.DRIVER
|
||||
worker_info = {"exception": error_message}
|
||||
|
||||
ray.state.state._check_connected()
|
||||
ray.state.state.add_worker(worker_id, worker_type, worker_info)
|
||||
# Call the normal excepthook.
|
||||
normal_excepthook(type, value, tb)
|
||||
|
||||
Reference in New Issue
Block a user