feat(admin): 排程管理触发热点问题离线聚合
This commit is contained in:
1 parent
cdd227d550
commit
82ad4323f8
11 files changed
+378
-69
No files matched your search
@@ -226,7 +226,10 @@ def update_task(task: ScheduleTask, *, payload: dict[str, Any], actor_id: int |
|
||||
task.kb_group_id = int(raw_group_id) if raw_group_id not in (None, "", 0, "0") else None
|
||||
|
||||
if not normalize_platform_api_path(task.platform_api_path):
|
||||
raise ValueError("platform_api_path is required for platform_app")
|
||||
dst = str(getattr(task, "data_source_type", None) or "database")
|
||||
if dst != "faq_hot_aggregate":
|
||||
raise ValueError("platform_api_path is required for platform_app")
|
||||
task.platform_api_path = "faq-aggregate-hot"
|
||||
task.schedule_type = "platform_app"
|
||||
|
||||
if task.enabled and task.cron_expr:
|
||||
|
||||
Reference in new issue
Block a user