Skip to content

Commit

Permalink
Fix address already in use when AIRuntime start in pod (#289)
Browse files Browse the repository at this point in the history
add uvicorn startup into file entrypoint
  • Loading branch information
brosoul authored Oct 11, 2024
1 parent 2f32a01 commit 8a067d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/aibrix/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,5 @@ async def add_router_prometheus_middlerware(request: Request, call_next):
return response


uvicorn.run(app, port=envs.SERVER_PORT)
if __name__ == "__main__":
uvicorn.run(app, port=envs.SERVER_PORT)

0 comments on commit 8a067d2

Please sign in to comment.