phase 14-15: docker build validation and helm deployment

This commit is contained in:
Celes Renata
2026-04-11 11:59:45 -07:00
parent 7394d241c9
commit ce10afa034
179 changed files with 32559 additions and 576 deletions
+2
View File
@@ -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()
+2 -1
View File
@@ -13,8 +13,8 @@ import asyncpg
from services.shared.config import load_config
from services.shared.db import get_pg_pool
from services.shared.logging import setup_logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("seed")
# --- Seed Companies ---
@@ -173,6 +173,7 @@ async def seed(pool: asyncpg.Pool) -> None:
async def main() -> None:
config = load_config()
setup_logging("seed", level=config.log_level, json_output=config.json_logs)
pool = await get_pg_pool(config)
try:
await seed(pool)