Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Dec 10, 2024
1 parent 24b2d7b commit 611a3c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,13 @@ async def start_server(server_url):
# Replace this with your own liveness check
return {"status": "ok"}

# Register a probe for the service
await server.register_probe({
# Register probes for the service
await server.register_probes({
"readiness": check_readiness,
"liveness": check_liveness,
})

# This will register a "probes" service where you can accessed via hypha or the HTTP proxy
# This will register probes service where you can accessed via hypha or the HTTP proxy
print(f"Probes registered at workspace: {server.config.workspace}")
print(f"Test it with the HTTP proxy: {server_url}/{server.config.workspace}/services/probes/readiness")

Expand Down

0 comments on commit 611a3c0

Please sign in to comment.