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:
Alyetama 2022-05-04 00:44:31 -04:00 committed by GitHub
parent b8e61bc4d8
commit 5f43906b5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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()