dumb type conversion
Some checks failed
Run linting on the backend code / Build (pull_request) Has been cancelled
Run testing on the backend code / Build (pull_request) Has been cancelled
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m14s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 38s
Some checks failed
Run linting on the backend code / Build (pull_request) Has been cancelled
Run testing on the backend code / Build (pull_request) Has been cancelled
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m14s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 38s
This commit is contained in:
parent
fa083a1080
commit
bc63b57154
@ -60,7 +60,7 @@ def uvicorn_run():
|
|||||||
"""
|
"""
|
||||||
Run the FastAPI application using uvicorn
|
Run the FastAPI application using uvicorn
|
||||||
"""
|
"""
|
||||||
num_workers = os.getenv('NUM_WORKERS', 1)
|
num_workers = int(os.getenv('NUM_WORKERS', 1))
|
||||||
logger.info(f"Starting FastAPI+uvicorn with {num_workers=}, {is_debug=}, {is_kubernetes=}")
|
logger.info(f"Starting FastAPI+uvicorn with {num_workers=}, {is_debug=}, {is_kubernetes=}")
|
||||||
uvicorn.run(
|
uvicorn.run(
|
||||||
# we could in theory directly import the app and pass it as an object
|
# we could in theory directly import the app and pass it as an object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user