Skip to content

Commit 8f6c0f0

Browse files
authored
[core] Unexpected system exit instead of objects_valid crash on exception (ray-project#57247)
Signed-off-by: dayshah <dhyey2019@gmail.com>
1 parent b0bd531 commit 8f6c0f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/ray/_raylet.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,6 +2462,10 @@ cdef CRayStatus task_execution_handler(
24622462
if hasattr(e, "unexpected_error_traceback"):
24632463
msg += (f" {e.unexpected_error_traceback}")
24642464
return CRayStatus.UnexpectedSystemExit(msg)
2465+
except Exception as e:
2466+
msg = "Unexpected exception raised in task execution handler: {}".format(e)
2467+
logger.error(msg)
2468+
return CRayStatus.UnexpectedSystemExit(msg)
24652469

24662470
return CRayStatus.OK()
24672471

0 commit comments

Comments
 (0)