1.排程管理新增检核规则提示词维护,用于传入Dify中作为检核规则

2.聊天界面内容不可复制问题修复
This commit is contained in:
hugo committed 2026-05-25 14:58:09 +08:00
1 parent 452f6ebc6d
commit ff2d02051f
17 files changed
+355 -20

No files matched your search

@@ -14,6 +14,7 @@ from app.models import ScheduleRun, ScheduleTask, User
from app.services.schedule import normalize_platform_api_path, resolve_schedule_executor, resolve_schedule_header
from app.services.schedule.sql_config import get_schedule_sql_config_by_task_id
from app.services.schedule.excel_service import export_schedule_result_excel
from app.services.schedule.dify_snapshot import capture_dify_execution_snapshot
_worker_started = False
_worker_lock = threading.Lock()
@@ -248,6 +249,9 @@ def run_task_now(task: ScheduleTask, *, trigger_type: str, triggered_by_user_id:
db.session.add(run)
db.session.commit()
capture_dify_execution_snapshot(run, task)
db.session.commit()
if task.cron_expr and trigger_type == "cron":
try:
iter = croniter(task.cron_expr, datetime.utcnow())