From 4d4c5321e99387a94b0c002221200ac3afdcd8d4 Mon Sep 17 00:00:00 2001 From: nolan1999 Date: Wed, 2 Sep 2026 01:50:21 +0200 Subject: [PATCH] Fix StandaloneApplicationapp --- pyproject.toml | 2 +- scripts/serve.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dd37d41..6004f21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "workerfacing-api" -version = "0.2.1" +version = "0.3.0" description = "Worker-facing API of DECODE OpenCloud." authors = ["Arthur Jaques "] readme = "README.md" diff --git a/scripts/serve.py b/scripts/serve.py index 6ffff13..d2a2cbb 100644 --- a/scripts/serve.py +++ b/scripts/serve.py @@ -34,7 +34,7 @@ def main() -> None: uvicorn.run(app, host=host, port=port, reload=True) else: StandaloneApplication( - app="app:app", + app=app, options={ "bind": f"{host}:{port}", "workers": (multiprocessing.cpu_count() * 2) + 1,