Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions python/ray/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,16 @@ def __str__(self):

@staticmethod
def from_task_error(task_error):
print(
f"---------- Ray Actor Error details ----------\n"
f"function name: {task_error.function_name}, \n"
f"traceback_str: {task_error.traceback_str}, \n"
f"cause: {task_error.cause}, \n"
f"proctitle: {task_error.proctitle},\n"
f"pid: {task_error.pid},\n"
f"ip: {task_error.ip}\n"
f"---------- End of Error ----------"
)
return RayActorError(task_error.function_name,
task_error.traceback_str, task_error.cause,
task_error.proctitle, task_error.pid,
Expand Down
4 changes: 4 additions & 0 deletions python/ray/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ def _deserialize_object(self, data, metadata, object_ref):
data, metadata_fields)
if pb_bytes:
return RayError.from_bytes(pb_bytes)
logger.error(
f"Debugging: Raised the RayActorError with data: \n"
f"{data}, {metadata_fields}."
)
return RayActorError()
elif error_type == ErrorType.Value("TASK_CANCELLED"):
return TaskCancelledError()
Expand Down