WeKnora/internal/application
The one -Niu f5cfa0ff5f
fix(knowledge): leave the root span open while a retry is left (#4357)
* fix(knowledge): leave the root span open while a retry is left

FailSpan closed the attempt root as failed on any main-stage failure, but
asynq retries reuse the payload and record onto the same attempt. Once the
root is terminal FinalizeAttempt returns on its guard, so a retry that
succeeds leaves the root failed while every child span and the document
itself report completed.

Defer the root's terminal status until the runner has no retry left, using
the same counters ProcessDocument already computes isLastRetry from.

* fix(knowledge): distinguish terminal span failures from retryable errors

---------

Co-authored-by: wizardchen <wizardchen@tencent.com>
2026-10-17 00:24:34 +08:00
..
access feat(assistant): side panel, access levels and role-aware operations (#4342) 2026-10-15 18:18:22 +08:00
attachment fix(agent): clarify attachment image paths and chart readings (#4283) 2026-10-14 14:23:28 +08:00
repository feat(assistant): manage agents and skills, separate history, refresh pages (#4344) 2026-10-15 21:43:20 +08:00
service fix(knowledge): leave the root span open while a retry is left (#4357) 2026-10-17 00:24:34 +08:00