Skip to content

Commit

Permalink
[train] fix StartTracebackWithWorkerRank serialization (#48548)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Deng <[email protected]>
  • Loading branch information
matthewdeng authored and Jay-ju committed Nov 5, 2024
1 parent ae1de15 commit 4308825
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/ray/air/_internal/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def __init__(self, worker_rank: int) -> None:
super().__init__()
self.worker_rank = worker_rank

def __reduce__(self):
return (self.__class__, (self.worker_rank,))


def skip_exceptions(exc: Optional[Exception]) -> Exception:
"""Skip all contained `StartTracebacks` to reduce traceback output.
Expand Down

0 comments on commit 4308825

Please sign in to comment.