Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
dc56d6ce
Unverified
Commit
dc56d6ce
authored
Aug 22, 2025
by
Biswa Panda
Committed by
GitHub
Aug 22, 2025
Browse files
fix: hello world yaml and messages (#2634)
parent
bce74588
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
examples/runtime/hello_world/client.py
examples/runtime/hello_world/client.py
+1
-1
examples/runtime/hello_world/deploy/hello_world.yaml
examples/runtime/hello_world/deploy/hello_world.yaml
+3
-2
No files found.
examples/runtime/hello_world/client.py
View file @
dc56d6ce
...
@@ -40,7 +40,7 @@ async def worker(runtime: DistributedRuntime):
...
@@ -40,7 +40,7 @@ async def worker(runtime: DistributedRuntime):
try
:
try
:
# Issue request and process the stream
# Issue request and process the stream
idx
+=
1
idx
+=
1
stream
=
await
client
.
generate
(
f
"Query[
{
idx
}
] Hello world
"
)
stream
=
await
client
.
generate
(
"world,sun,moon,star
"
)
async
for
response
in
stream
:
async
for
response
in
stream
:
print
(
response
.
data
())
print
(
response
.
data
())
# Reset backoff on successful iteration
# Reset backoff on successful iteration
...
...
examples/runtime/hello_world/deploy/hello_world.yaml
View file @
dc56d6ce
...
@@ -6,6 +6,7 @@ kind: DynamoGraphDeployment
...
@@ -6,6 +6,7 @@ kind: DynamoGraphDeployment
metadata
:
metadata
:
name
:
hello-world
name
:
hello-world
spec
:
spec
:
backendFramework
:
vllm
services
:
services
:
Frontend
:
Frontend
:
livenessProbe
:
livenessProbe
:
...
@@ -60,7 +61,7 @@ spec:
...
@@ -60,7 +61,7 @@ spec:
command
:
command
:
-
/bin/sh
-
/bin/sh
-
-c
-
-c
-
'
grep
"Serving
endpoint"
/tmp/hello_world.log'
-
"
exit
0"
initialDelaySeconds
:
60
initialDelaySeconds
:
60
periodSeconds
:
60
periodSeconds
:
60
timeoutSeconds
:
30
timeoutSeconds
:
30
...
@@ -83,4 +84,4 @@ spec:
...
@@ -83,4 +84,4 @@ spec:
-
/bin/sh
-
/bin/sh
-
-c
-
-c
args
:
args
:
-
python3 hello_world.py
2>&1 | tee /tmp/hello_world.log
-
python3 hello_world.py
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