feat(admin): 排程管理触发热点问题离线聚合

This commit is contained in:
sophie committed 2026-06-22 18:53:53 +08:00
1 parent cdd227d550
commit 82ad4323f8
11 files changed
+378 -69

No files matched your search

@@ -273,6 +273,9 @@ def list_registered_api_paths() -> list[dict[str, str]]:
def resolve_schedule_executor(task: ScheduleTask) -> ScheduleExecutor:
dst = getattr(task, "data_source_type", None) or "database"
if dst == "faq_hot_aggregate":
from app.services.schedule.faq_hot_aggregate_job import run_faq_hot_aggregate_schedule
return run_faq_hot_aggregate_schedule
if dst in ("database", "external_api"):
return _run_generic_check_job
return _run_common_executor