Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuhtz committed Jul 15, 2024
1 parent 80b5b50 commit dd53a5b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,12 @@ def check_env_vars():
api.include_router(test_router, prefix='/test')
logger.debug('/test route defined.')

# see thread https://github.com/tiangolo/fastapi/issues/1495 for uvicorn app call
uv_cfg = uvicorn.Config(
api.run(
app='__main__:api',
host=listener_host,
port=listener_port,
workers=listener_workers,
log_level=log_level,
timeout_graceful_shutdown=2
)

server = uvicorn.Server( config=uv_cfg )
server.run()

0 comments on commit dd53a5b

Please sign in to comment.