feat(worker): 경기 결과 자동 정산 + '맞춘 사람만' 결과 메일
- 킥오프+result_settle_hours 경과 경기를 외부 스코어로 자동 채점(settle_matches) - schedule_fetch.fetch_results: openfootball/football-data 확정 스코어 수집 - 결과 메일을 승패 적중자에게만 발송하는 옵션(result_email_correct_only) - 스케줄러에 settle 잡 추가 + 기동 시 1회 밀린 경기 정산 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
464145a234
commit
4244518ffd
3 files changed
+156
-14
No files matched your search
+11
-2
@@ -73,8 +73,17 @@ class Settings(BaseSettings):
|
||||
# 매일 AI 예측 생성 시각 (KST). 기능정의서: 매일 0시 1회 생성.
|
||||
ai_generate_hour: int = 0
|
||||
ai_generate_minute: int = 5
|
||||
# 결과 메일: 경기 종료(결과 입력) 후 이 시간(분) 경과하면 발송. 기본 180분(3시간).
|
||||
result_email_delay_minutes: int = 180
|
||||
|
||||
# ── 결과 자동 정산(관리자 입력 불필요) ───────────────────
|
||||
# 킥오프 + 이 시간(시) 경과 후, 외부 소스에서 스코어를 자동 수집해 채점·집계·메일.
|
||||
result_settle_hours: int = 3
|
||||
# 정산/메일 점검 주기(초). status_tick 와 함께 도는 별도 폴링.
|
||||
settle_tick_seconds: int = 300
|
||||
# 결과 메일을 '맞춘 사람(승패 적중)'에게만 보낼지 여부. False면 구독자 전체.
|
||||
result_email_correct_only: bool = True
|
||||
# 결과 메일: 결과 확정 후 추가 지연(분). 자동정산은 이미 킥오프+Nh라 기본 0.
|
||||
result_email_delay_minutes: int = 0
|
||||
|
||||
# 상태 전이 틱 주기(초): scheduled→open→locked 자동 갱신.
|
||||
status_tick_seconds: int = 60
|
||||
|
||||
|
||||
Reference in new issue
Block a user