From b1f2b142d58aafbf16dc3e5cc71451ea325bf18b Mon Sep 17 00:00:00 2001 From: SangBin Cho Date: Mon, 7 Dec 2020 18:28:32 -0800 Subject: [PATCH] [Core] Ensure global state is connected when exception hook is called from the driver. (#12655) --- python/ray/worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/ray/worker.py b/python/ray/worker.py index a5b5559aa..ffc4b4f2f 100644 --- a/python/ray/worker.py +++ b/python/ray/worker.py @@ -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)