"실시간_설정_감시_Watchdog_기능_구현"

This commit is contained in:
2026-02-03 01:04:23 +09:00
parent 675026d51e
commit b364e41e46
3 changed files with 87 additions and 44 deletions

View File

@@ -6,6 +6,7 @@ from pydantic import BaseModel
from app.db.database import get_db
from app.db.models import ApiSettings
from app.services.kis_auth import kis_auth
from app.workers.scheduler import service_watchdog_job
import logging
router = APIRouter()
@@ -97,6 +98,9 @@ async def update_settings(payload: SettingsSchema, db: AsyncSession = Depends(ge
await db.commit()
await db.refresh(settings)
# Trigger Startup-like sequence immediately
await service_watchdog_job()
# Return masked object check
# We return what was saved, but masked?
# Usually convention is to return updated state.