Skip to content

Commit

Permalink
fix health
Browse files Browse the repository at this point in the history
  • Loading branch information
aniketmaurya committed Nov 7, 2024
1 parent 245168d commit 7a65a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/litserve/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ async def index(request: Request) -> Response:
async def health(request: Request) -> Response:
nonlocal workers_ready
if not workers_ready:
workers_ready = all(self.workers_setup_status.values())
workers_ready = all(v == WorkerSetupStatus.READY for v in self.workers_setup_status.values())

if workers_ready:
return Response(content="ok", status_code=200)
Expand Down

0 comments on commit 7a65a21

Please sign in to comment.