Skip to content
Merged
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
8 changes: 3 additions & 5 deletions kubeflow/trainer/backends/kubernetes/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def list_runtimes(self) -> list[types.Runtime]:
return result

def get_runtime(self, name: str) -> types.Runtime:
"""Get the the Runtime object"""
"""Get the Runtime object"""

try:
thread = self.custom_api.get_cluster_custom_object(
Expand All @@ -111,13 +111,11 @@ def get_runtime(self, name: str) -> types.Runtime:

except multiprocessing.TimeoutError as e:
raise TimeoutError(
f"Timeout to get {constants.CLUSTER_TRAINING_RUNTIME_PLURAL}: "
f"{self.namespace}/{name}"
f"Timeout to get {constants.CLUSTER_TRAINING_RUNTIME_PLURAL}: {name}"
) from e
except Exception as e:
raise RuntimeError(
f"Failed to get {constants.CLUSTER_TRAINING_RUNTIME_PLURAL}: "
f"{self.namespace}/{name}"
f"Failed to get {constants.CLUSTER_TRAINING_RUNTIME_PLURAL}: {name}"
) from e

return self.__get_runtime_from_cr(runtime) # type: ignore
Expand Down
Loading