We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58a5596 commit c9a01d1Copy full SHA for c9a01d1
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."""
- alembic_cfg = Config(str(Path(__file__).resolve().parent / "alembic.ini"))
24
- command.upgrade(alembic_cfg, "head")
+ alembic_config = Config(str(Path(__file__).resolve().parent / "alembic.ini"))
25
+ command.upgrade(alembic_config, "head")
0 commit comments