Skip to content

Commit 2b5f09e

Browse files
Merge remote-tracking branch 'team/impl/sky_lauch' into impl/demo/100724
2 parents 032f639 + cf3539e commit 2b5f09e

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

src/pymc_server/cli.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import sky
33
from typing import Any, Dict, List, Optional, Tuple, Union
44
from pymc_server.utils.yaml import merge_yaml
5-
from pymc_server.launch_cli import launch as cli_launch,cli_launch_
6-
from pymc_server.launch_cli import launch_2
7-
from pymc_server.down_cli import down as down_cli
5+
#from pymc_server.commands.launch_cli import launch as cli_launch,cli_launch_
6+
from pymc_server.commands.launch_cli import launch_2
7+
from pymc_server.commands.down_cli import down as down_cli
88
from pymc_server.cli_factory import setup_launch_factory, setup_status_factory
99
from sky.usage import usage_lib
1010
from sky.cli import _get_shell_complete_args, _get_click_major_version, _complete_cluster_name, _NaturalOrderGroup, _DocumentedCodeCommand
@@ -29,10 +29,8 @@ def status(*args, **kwargs):
2929
ctx = click.get_current_context()
3030
#ctx.invoke(_status_test, *args, **kwargs)
3131
print("*args",*args)
32-
33-
3432
data = ctx.invoke(sky_status, *args, **kwargs)
35-
print("DATA",data)
33+
#print("DATA",data)
3634

3735
#ctx.invoke(sky_status, *args, **kwargs)
3836

@@ -98,6 +96,7 @@ def down(*args, **kwargs):
9896
"""Deletes a local cluster."""
9997

10098

99+
101100
cli.add_command(status)
102101
cli.add_command(launch)
103102
cli.add_command(check)
File renamed without changes.
File renamed without changes.

src/pymc_server/utils/names.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import uuid
22
from sky.utils import common_utils
3-
def generate_service_name(prefix = "pymc"):
3+
def generate_service_name(prefix = "pymcs"):
44
return f'{prefix}-service-{uuid.uuid4().hex[:4]}'
55

6-
def generate_cluster_name(prefix = "pymc"):
6+
def generate_cluster_name(prefix = "pymcs"):
77
return f'{prefix}-{uuid.uuid4().hex[:4]}-{common_utils.get_cleaned_username()}'

0 commit comments

Comments
 (0)