From 2a2209a86c59f937c3e31d933f075f0ae980fa1e Mon Sep 17 00:00:00 2001 From: gahusb Date: Mon, 11 May 2026 08:37:08 +0900 Subject: [PATCH] =?UTF-8?q?feat(lotto):=20=EC=9D=BC=2003:00=20KST=20?= =?UTF-8?q?=EC=B1=84=EC=A0=90=20=EC=9E=A1=20APScheduler=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lotto/app/main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lotto/app/main.py b/lotto/app/main.py index f908269..ead8550 100644 --- a/lotto/app/main.py +++ b/lotto/app/main.py @@ -39,6 +39,7 @@ from .strategy_evolver import ( ) from .routers import curator as curator_router from .routers import briefing as briefing_router +from .jobs.grade_weekly_review import run_for_latest as grade_run_for_latest app = FastAPI() app.include_router(curator_router.router) @@ -95,6 +96,17 @@ def on_startup(): scheduler.add_job(_save_weekly_report_job, "cron", day_of_week="sat", hour=9, minute=0) + # 4. 주간 채점 (매주 일요일 03:00 KST — 토요일 추첨 다음날 새벽) + # 당첨번호 sync 이후 추천 vs 실제 결과 비교 → reviews 테이블 저장 + scheduler.add_job( + grade_run_for_latest, + "cron", + day_of_week="sun", + hour=3, + minute=0, + id="grade_weekly_review", + ) + scheduler.start()