We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58a5596 commit 77a2426Copy full SHA for 77a2426
gunicorn.conf.py
@@ -9,6 +9,7 @@
9
import multiprocessing
10
import os
11
from pathlib import Path
12
+from typing import Any
13
14
from alembic import command
15
from alembic.config import Config
@@ -18,7 +19,7 @@
18
19
worker_class: str = "uvicorn.workers.UvicornWorker"
20
21
-def on_starting(server) -> None:
22
+def on_starting(_server: Any) -> None:
23
"""Apply Alembic migrations once before workers are spawned."""
24
alembic_cfg = Config(str(Path(__file__).resolve().parent / "alembic.ini"))
25
command.upgrade(alembic_cfg, "head")
0 commit comments