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

+6
View File
@@ -8,6 +8,7 @@ from flask import Blueprint, jsonify, request
from app import db
from app.models import ScheduleRun, ScheduleTask
from app.services.schedule import _run_generic_check_job
from app.services.schedule.dify_snapshot import capture_dify_execution_snapshot
internal_jobs_bp = Blueprint('internal_jobs', __name__)
@@ -47,6 +48,10 @@ def run_internal_job(name: str):
db.session.add(run)
db.session.commit()
if not run.dify_execution_snapshot:
capture_dify_execution_snapshot(run, task)
db.session.commit()
try:
total_count, success_count, failed_count, skipped_count, details, errors, step_logs = _run_generic_check_job(task, run)
except Exception as exc:
@@ -68,6 +73,7 @@ def run_internal_job(name: str):
run.finished_at = datetime.utcnow()
if run.started_at and run.finished_at:
run.duration_ms = int((run.finished_at - run.started_at).total_seconds() * 1000)
run.step_logs = step_logs if step_logs else None
db.session.commit()
return jsonify({