* 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> |
||
|---|---|---|
| .. | ||
| access | ||
| attachment | ||
| repository | ||
| service | ||