Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] handle unserializable user exception #44878

Merged
merged 11 commits into from
May 2, 2024
Prev Previous commit
Next Next commit
fix comment
Signed-off-by: hongchaodeng <hongchaodeng1@gmail.com>
  • Loading branch information
hongchaodeng committed May 1, 2024
commit 42d8364bb162c851bc3c5efcf8f68c9e55e46836
4 changes: 2 additions & 2 deletions doc/source/ray-core/doc_code/task_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ def raise_unserializable_error():
ray.get(raise_unserializable_error.remote())
except ray.exceptions.RayTaskError as e:
print(e)
# ray::raise_unserializable_error() (pid=222813, ip=172.31.5.154)
# ray::raise_unserializable_error() (pid=328577, ip=172.31.5.154)
# File "/home/ubuntu/ray/tmp~/main.py", line 25, in raise_unserializable_error
# raise UnserializableException
# UnserializableException
print(type(e.cause))
# <class 'ray.exceptions.RayError'>
print(e.cause)
# The original cause of RayTaskError (<class '__main__.UnserializableException'>) is not serializable: cannot pickle '_thread.lock' object. Overwriting the cause to RayError.
# The original cause of the RayTaskError (<class '__main__.UnserializableException'>) isn't serializable: cannot pickle '_thread.lock' object. Overwriting the cause to a RayError.

# __unserializable_exceptions_end__
# __catch_user_exceptions_begin__
Expand Down
Loading