File tree 2 files changed +0
-23
lines changed
src/codeflare_sdk/cluster
2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change 21
21
from time import sleep
22
22
from typing import List , Optional , Tuple , Dict
23
23
24
- import openshift as oc
25
24
from kubernetes import config
26
25
from ray .job_submission import JobSubmissionClient
27
- import urllib3
28
26
29
27
from .auth import config_check , api_config_handler
30
28
from ..utils import pretty_print
@@ -58,8 +56,6 @@ class Cluster:
58
56
Note that currently, the underlying implementation is a Ray cluster.
59
57
"""
60
58
61
- torchx_scheduler = "ray"
62
-
63
59
def __init__ (self , config : ClusterConfiguration ):
64
60
"""
65
61
Create the resource cluster object by passing in a ClusterConfiguration
@@ -472,20 +468,6 @@ def job_logs(self, job_id: str) -> str:
472
468
"""
473
469
return self .job_client .get_job_logs (job_id )
474
470
475
- def torchx_config (
476
- self , working_dir : str = None , requirements : str = None
477
- ) -> Dict [str , str ]:
478
- dashboard_address = urllib3 .util .parse_url (self .cluster_dashboard_uri ()).host
479
- to_return = {
480
- "cluster_name" : self .config .name ,
481
- "dashboard_address" : dashboard_address ,
482
- }
483
- if working_dir :
484
- to_return ["working_dir" ] = working_dir
485
- if requirements :
486
- to_return ["requirements" ] = requirements
487
- return to_return
488
-
489
471
def from_k8_cluster_object (
490
472
rc ,
491
473
mcad = True ,
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- # TODO: replace all instances of torchx_runner
16
15
17
16
from pathlib import Path
18
17
import sys
81
80
import openshift
82
81
from openshift .selector import Selector
83
82
import ray
84
- from torchx .specs import AppDryRunInfo , AppDef
85
- from torchx .runner import get_runner , Runner
86
- from torchx .schedulers .ray_scheduler import RayJob
87
- from torchx .schedulers .kubernetes_mcad_scheduler import KubernetesMCADJob
88
83
import pytest
89
84
import yaml
90
85
from unittest .mock import MagicMock
You can’t perform that action at this time.
0 commit comments