From bc63b57154bb3cf002d8848f09254ff888a4ea0b Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Sat, 28 Dec 2024 22:34:14 +0100 Subject: [PATCH] dumb type conversion --- backend/launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/launcher.py b/backend/launcher.py index 269433b..5de65ca 100644 --- a/backend/launcher.py +++ b/backend/launcher.py @@ -60,7 +60,7 @@ def uvicorn_run(): """ 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=}") uvicorn.run( # we could in theory directly import the app and pass it as an object