-
Notifications
You must be signed in to change notification settings - Fork 7k
[rllib] Log or raise error if not fully handled #58889
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
[rllib] Log or raise error if not fully handled #58889
Conversation
Signed-off-by: Mark Towers <[email protected]>
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.
Code Review
This pull request improves error handling by logging or re-raising exceptions that were previously being ignored. This is a great change for improving the debuggability of RLlib. The changes are in the right direction. I've added a few comments with suggestions to use the logging module consistently instead of print, and to use logger.exception in a more idiomatic way.
Signed-off-by: Mark Towers <[email protected]>
ArturNiederfahrenhorst
left a comment
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.
Nice! What do you think about putting some more information into the error that pops up when we can't solve references?
This kind of errors comes up a lot when using spot instances and we should ensure that users are not alarmed each time they discover this log message.
Signed-off-by: Mark Towers <[email protected]>
ArturNiederfahrenhorst
left a comment
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.
Thanks!
Description
Checking RLlib, there are a couple cases where we don't fully handle exception cases.
I've checked every try except statement in RLlib and this PR updates all of them that didn't log or print the error if it wasn't handled
Related issues
Fixes #58854