[Core] Ensure global state is connected when exception hook is called from the driver. (#12655)

This commit is contained in:
SangBin Cho
2020-12-07 18:28:32 -08:00
committed by GitHub
parent 040cf2c13b
commit b1f2b142d5
+1
View File
@@ -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)