fix db connections

This commit is contained in:
user committed 2025-08-24 17:17:58 +03:00
1 parent 3a6f787a78
commit 4401916104
4 files changed
+49 -129

No files matched your search

+2 -1
View File
@@ -5,7 +5,6 @@ from httpx import AsyncClient
from app.core._config import PROJECT_HOST
from app.core._crypto.signer import Signer
from app.core._secrets import hot_seed
from app.core.logger import make_log
@@ -17,6 +16,8 @@ async def send_status(service: str, status: str):
'status': status,
}
message_bytes = dumps(message).encode()
# Lazy import to avoid triggering _secrets before DB is ready
from app.core._secrets import hot_seed
signer = Signer(hot_seed)
message_signature = signer.sign(message_bytes)
async with AsyncClient() as client: