Files
gsfdc/demo-dify/dify/api/tasks/application_trace_task.py
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

16 lines
423 B
Python

"""Durable application trace delivery routed by ``OPS_TRACE_QUEUE``."""
from celery import shared_task
from extensions.ext_application_services import application_services
@shared_task
def export_application_trace(run_id: str) -> None:
application_services().tracing.agent_traces.deliver(run_id)
@shared_task
def reconcile_application_traces() -> None:
application_services().tracing.agent_traces.reconcile()