mirror of
https://github.com/langgenius/dify.git
synced 2026-03-14 13:51:33 +08:00
Workflow RT: replace float(info.workflow_run_elapsed_time) with (end_time - start_time).total_seconds() using workflow_run.created_at and workflow_run.finished_at. The elapsed_time DB field defaults to 0 and can be stale if the workflow_storage Celery task has not committed yet when the trace fires. Wall-clock timestamps are more reliable; elapsed_time is kept as fallback. Message RT: change end_time from created_at + provider_response_latency to message.updated_at when updated_at > created_at. The pipeline explicitly sets message.updated_at = naive_utc_now() at the moment the LLM response is complete, making it the canonical response-complete timestamp. Falls back to the latency-based calculation for error/aborted messages. |
||
|---|---|---|
| .. | ||
| telemetry | ||
| __init__.py | ||