"실시간_설정_감시_Watchdog_기능_구현"
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user