-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
Send task error instead of raw exception for signal #4150
Conversation
Test FAILed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
This is not currently passing tests, see https://travis-ci.com/ray-project/ray/jobs/180115893 |
The tests seem to only fail in python 2. |
I thought it was a In Python 2, this fails import pickle
class A(Exception):
def __init__(self, x):
pass
a = A(1)
serialized = pickle.dumps(a)
pickle.loads(serialized) It raises
https://stackoverflow.com/questions/41808912/cannot-unpickle-exception-subclass |
Oh weird. I guess we could send |
I made it a string instead. What do you think about that? |
Sounds good to me. We can iterate on this later. |
Test FAILed. |
What do these changes do?
Exceptions are not always serializable, so we cannot send them safely. Send the RayTaskError instead.
Related issue number
Fixes #4149