Skip to content

Commit b713bc8

Browse files
committed
Use uvloop by default
1 parent 2a89dff commit b713bc8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ gateway = [
106106
server = [
107107
"fastapi",
108108
"starlette>=0.26.0",
109-
"uvicorn",
109+
"uvicorn[standard]",
110110
"aiorwlock",
111111
"aiocache",
112112
"httpx",

src/dstack/_internal/server/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def create_app() -> FastAPI:
9999
async def lifespan(app: FastAPI):
100100
configure_logging()
101101
server_executor = ThreadPoolExecutor(max_workers=settings.SERVER_EXECUTOR_MAX_WORKERS)
102+
print(asyncio.get_running_loop())
102103
asyncio.get_running_loop().set_default_executor(server_executor)
103104
await migrate()
104105
_print_dstack_logo()

0 commit comments

Comments
 (0)