mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Fix broken documentation URL (#24437)
The link to the documentation to troubleshoot TypeError: Could not serialize the function ... is broken. This PR fixes the link by replacing it with the correct URL.
This commit is contained in:
parent
b8e61bc4d8
commit
5f43906b5d
4 changed files with 7 additions and 7 deletions
|
@ -466,7 +466,7 @@ class FunctionActorManager:
|
|||
msg = (
|
||||
"Could not serialize the actor class "
|
||||
f"{actor_creation_function_descriptor.repr}. "
|
||||
"Check https://docs.ray.io/en/master/serialization.html#troubleshooting " # noqa
|
||||
"Check https://docs.ray.io/en/master/ray-core/objects/serialization.html#troubleshooting " # noqa
|
||||
"for more information."
|
||||
)
|
||||
raise TypeError(msg) from e
|
||||
|
|
|
@ -418,7 +418,7 @@ cdef prepare_args_internal(
|
|||
"Could not serialize the argument "
|
||||
f"{repr(arg)} for a task or actor "
|
||||
f"{function_descriptor.repr}. Check "
|
||||
"https://docs.ray.io/en/master/serialization.html#troubleshooting " # noqa
|
||||
"https://docs.ray.io/en/master/ray-core/objects/serialization.html#troubleshooting " # noqa
|
||||
"for more information.")
|
||||
raise TypeError(msg) from e
|
||||
metadata = serialized_arg.metadata
|
||||
|
|
|
@ -204,7 +204,7 @@ class RemoteFunction:
|
|||
msg = (
|
||||
"Could not serialize the function "
|
||||
f"{self._function_descriptor.repr}. Check "
|
||||
"https://docs.ray.io/en/master/serialization.html#troubleshooting "
|
||||
"https://docs.ray.io/en/master/ray-core/objects/serialization.html#troubleshooting " # noqa
|
||||
"for more information."
|
||||
)
|
||||
raise TypeError(msg) from e
|
||||
|
|
|
@ -319,10 +319,10 @@ RuntimeError: Failed to unpickle serialized exception"""
|
|||
|
||||
|
||||
def test_serialization_error_message(shutdown_only):
|
||||
expected_output_task = """Could not serialize the argument <unlocked _thread.lock object at ADDRESS> for a task or actor test_traceback.test_serialization_error_message.<locals>.task_with_unserializable_arg. Check https://docs.ray.io/en/master/serialization.html#troubleshooting for more information.""" # noqa
|
||||
expected_output_actor = """Could not serialize the argument <unlocked _thread.lock object at ADDRESS> for a task or actor test_traceback.test_serialization_error_message.<locals>.A.__init__. Check https://docs.ray.io/en/master/serialization.html#troubleshooting for more information.""" # noqa
|
||||
expected_capture_output_task = """Could not serialize the function test_traceback.test_serialization_error_message.<locals>.capture_lock. Check https://docs.ray.io/en/master/serialization.html#troubleshooting for more information.""" # noqa
|
||||
expected_capture_output_actor = """Could not serialize the actor class test_traceback.test_serialization_error_message.<locals>.B.__init__. Check https://docs.ray.io/en/master/serialization.html#troubleshooting for more information.""" # noqa
|
||||
expected_output_task = """Could not serialize the argument <unlocked _thread.lock object at ADDRESS> for a task or actor test_traceback.test_serialization_error_message.<locals>.task_with_unserializable_arg. Check https://docs.ray.io/en/master/ray-core/objects/serialization.html#troubleshooting for more information.""" # noqa
|
||||
expected_output_actor = """Could not serialize the argument <unlocked _thread.lock object at ADDRESS> for a task or actor test_traceback.test_serialization_error_message.<locals>.A.__init__. Check https://docs.ray.io/en/master/ray-core/objects/serialization.html#troubleshooting for more information.""" # noqa
|
||||
expected_capture_output_task = """Could not serialize the function test_traceback.test_serialization_error_message.<locals>.capture_lock. Check https://docs.ray.io/en/master/ray-core/objects/serialization.html#troubleshooting for more information.""" # noqa
|
||||
expected_capture_output_actor = """Could not serialize the actor class test_traceback.test_serialization_error_message.<locals>.B.__init__. Check https://docs.ray.io/en/master/ray-core/objects/serialization.html#troubleshooting for more information.""" # noqa
|
||||
ray.init(num_cpus=1)
|
||||
lock = threading.Lock()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue