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
5e6d1435
Unverified
Commit
5e6d1435
authored
Jan 14, 2025
by
Jakob Görgen
Browse files
symphony/client: use resource_group when creating runner
parent
950a3bb0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
symphony/client/simbricks/client/client.py
symphony/client/simbricks/client/client.py
+3
-2
No files found.
symphony/client/simbricks/client/client.py
View file @
5e6d1435
...
...
@@ -425,8 +425,9 @@ class RunnerClient:
async
with
self
.
_ns_client
.
get
(
url
=
self
.
_build_prefix
(
url
=
url
),
data
=
data
,
**
kwargs
)
as
resp
:
yield
resp
async
def
create_runner
(
self
,
label
:
str
,
tags
:
list
[
str
])
->
dict
:
obj
=
{
"label"
:
label
,
"tags"
:
list
(
map
(
lambda
t
:
{
"label"
:
t
,
"runner_id"
:
None
},
tags
))}
async
def
create_runner
(
self
,
resource_group_id
:
int
,
label
:
str
,
tags
:
list
[
str
])
->
dict
:
tags_obj
=
list
(
map
(
lambda
t
:
{
"label"
:
t
},
tags
))
obj
=
{
"resource_group_id"
:
resource_group_id
,
"label"
:
label
,
"tags"
:
tags_obj
}
async
with
self
.
_ns_client
.
post
(
url
=
f
"/runners"
,
json
=
obj
)
as
resp
:
return
await
resp
.
json
()
...
...
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