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

Revert "Revert "Support accessing underlying attributes in RayTaskErr… #14449

Merged
merged 8 commits into from
Mar 8, 2021

Conversation

edoakes
Copy link
Contributor

@edoakes edoakes commented Mar 2, 2021

Allows users to interact with RayTaskError exception objects as they would with the underlying exception object. This makes it easier to convert existing code to run on Ray.

The only downside here is if the original object is not serializable, this will throw a separate exception with a traceback saying it couldn't be serialized. I don't see this being a significant issue because exception objects should generally be simple and not contain e.g., mutexes, but we can handle it here by only storing the traceback for non-serializable objects if need be.

Why are these changes needed?

Related issue number

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@edoakes edoakes requested review from ericl and simon-mo March 4, 2021 05:13
@edoakes
Copy link
Contributor Author

edoakes commented Mar 4, 2021

@ericl anything special I need to do here for Ray client?

@ericl
Copy link
Contributor

ericl commented Mar 4, 2021

Probably not. If you want test coverage, you could add something to test_basic which is run in client mode tests.

@edoakes edoakes merged commit 04c0097 into ray-project:master Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants