mirror of
https://github.com/langgenius/dify.git
synced 2026-11-10 21:35:45 +08:00
16 lines
423 B
Python
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()
|