You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
505 B
Python
13 lines
505 B
Python
# backend/app/worker/triggers.py — 수동 트리거 매핑 (WORKER_ENABLED=false 프로토타입)
|
|
from .jobs.digest import run_digest
|
|
from .jobs.proactive import run_proactive
|
|
from .jobs.weekly_review import run_weekly_review
|
|
|
|
JOBS = {
|
|
"proactive": lambda s, p: {"cards": [c.id for c in run_proactive(s)]},
|
|
"digest": lambda s, p: run_digest(s, slot=p.get("slot", "09:00")),
|
|
"weekly_review": lambda s, p: {
|
|
"id": run_weekly_review(s, week_label=p.get("week", "6/7~6/13")).id
|
|
},
|
|
}
|