phase 14-15: docker build validation and helm deployment
This commit is contained in:
@@ -10,6 +10,7 @@ from pydantic import BaseModel, field_validator
|
||||
|
||||
from services.shared.config import load_config
|
||||
from services.shared.db import get_pg_pool
|
||||
from services.shared.logging import setup_logging
|
||||
|
||||
config = load_config()
|
||||
pool: Optional[asyncpg.Pool] = None
|
||||
@@ -18,6 +19,7 @@ pool: Optional[asyncpg.Pool] = None
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
global pool
|
||||
setup_logging("symbol_registry", level=config.log_level, json_output=config.json_logs)
|
||||
pool = await get_pg_pool(config)
|
||||
yield
|
||||
await pool.close()
|
||||
|
||||
Reference in New Issue
Block a user