From 5de782cc03529fc5d9ee5355fac297d3d626557c Mon Sep 17 00:00:00 2001 From: SangBin Cho Date: Sat, 14 Sep 2024 12:22:39 -0700 Subject: [PATCH] [core] out of band serialization exception (#47544) Introduce an env var to raise an exception when there's out of band seriailzation of object ref Improve error message on out of band serialization issue. There are 2 types of issues. 1. cloudpikcle.dumps(ref). 2. implicit capture. See below for more details. Update an anti-pattern doc. Signed-off-by: ujjawal-khare --- python/ray/exceptions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/ray/exceptions.py b/python/ray/exceptions.py index b92c5ef10cbd..d69cde6a283d 100644 --- a/python/ray/exceptions.py +++ b/python/ray/exceptions.py @@ -888,5 +888,6 @@ class RayAdagCapacityExceeded(RaySystemError): ActorUnavailableError, RayChannelError, RayChannelTimeoutError, + OufOfBandObjectRefSerializationException, RayAdagCapacityExceeded, ]