Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
242b3dd2
"configs/models/wizardcoder/hf_wizardcoder_python_13b.py" did not exist on "fd389e2d78c030b5faae0fd347aec253a4060041"
Unverified
Commit
242b3dd2
authored
Jan 14, 2025
by
Jakob Görgen
Browse files
symphony/cli: use resource_group when creating runner
parent
5e6d1435
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
symphony/cli/simbricks/cli/commands/runners.py
symphony/cli/simbricks/cli/commands/runners.py
+7
-5
No files found.
symphony/cli/simbricks/cli/commands/runners.py
View file @
242b3dd2
...
@@ -34,7 +34,7 @@ app = Typer(help="Managing SimBricks runners.")
...
@@ -34,7 +34,7 @@ app = Typer(help="Managing SimBricks runners.")
async
def
ls
():
async
def
ls
():
"""List runners."""
"""List runners."""
runners
=
await
client_provider
.
runner_client
.
list_runners
()
runners
=
await
client_provider
.
runner_client
.
list_runners
()
print_table_generic
(
"Runners"
,
runners
,
"id"
,
"label"
,
"tags"
)
print_table_generic
(
"Runners"
,
runners
,
"id"
,
"label"
,
"tags"
,
"resource_group_id"
)
@
app
.
command
()
@
app
.
command
()
...
@@ -42,7 +42,7 @@ async def ls():
...
@@ -42,7 +42,7 @@ async def ls():
async
def
show
(
runner_id
:
int
):
async
def
show
(
runner_id
:
int
):
"""Show individual runner."""
"""Show individual runner."""
runner
=
await
client_provider
.
runner_client
.
get_runner
(
runner_id
=
runner_id
)
runner
=
await
client_provider
.
runner_client
.
get_runner
(
runner_id
=
runner_id
)
print_table_generic
(
"Runners"
,
[
runner
],
"id"
,
"label"
,
"tags"
)
print_table_generic
(
"Runners"
,
[
runner
],
"id"
,
"label"
,
"tags"
,
"resource_group_id"
)
@
app
.
command
()
@
app
.
command
()
...
@@ -54,10 +54,12 @@ async def delete(runner_id: int):
...
@@ -54,10 +54,12 @@ async def delete(runner_id: int):
@
app
.
command
()
@
app
.
command
()
@
async_cli
()
@
async_cli
()
async
def
create
(
label
:
str
,
tags
:
list
[
str
]):
async
def
create
(
resource_group_id
:
int
,
label
:
str
,
tags
:
list
[
str
]):
"""Update a runner with the the given label and tags."""
"""Update a runner with the the given label and tags."""
runner
=
await
client_provider
.
runner_client
.
create_runner
(
label
=
label
,
tags
=
tags
)
runner
=
await
client_provider
.
runner_client
.
create_runner
(
print_table_generic
(
"Runner"
,
[
runner
],
"id"
,
"label"
,
"tags"
)
resource_group_id
=
resource_group_id
,
label
=
label
,
tags
=
tags
)
print_table_generic
(
"Runner"
,
[
runner
],
"id"
,
"label"
,
"tags"
,
"resource_group_id"
)
@
app
.
command
()
@
app
.
command
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment