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
f87b7f6b
Unverified
Commit
f87b7f6b
authored
Nov 29, 2024
by
Antoine Kaufmann
Browse files
symphony/runner: add synchronous main() for entrypoint
parent
17d771b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
symphony/runner/simbricks/runner/__main__.py
symphony/runner/simbricks/runner/__main__.py
+5
-2
No files found.
symphony/runner/simbricks/runner/__main__.py
View file @
f87b7f6b
...
...
@@ -42,7 +42,7 @@ async def run_instantiation(inst: inst_base.Instantiation) -> dict:
return
output
.
__dict__
async
def
main
():
async
def
a
main
():
base_client
=
client
.
BaseClient
(
base_url
=
"http://0.0.0.0:8000"
)
namespace_client
=
client
.
NSClient
(
base_client
=
base_client
,
namespace
=
"foo/bar/baz"
)
sb_client
=
client
.
SimBricksClient
(
namespace_client
)
...
...
@@ -76,5 +76,8 @@ async def main():
await
rc
.
update_run
(
run_obj
[
'id'
],
'completed'
,
json
.
dumps
(
out
))
def
main
():
asyncio
.
run
(
amain
())
if
__name__
==
"__main__"
:
asyncio
.
run
(
main
())
\ No newline at end of file
main
()
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