fix(knowledge): recover tasks safely after server restart

Stop failing distributed-mode knowledge rows on startup; let housekeeping
decide using span activity and Asynq queue state. In Lite mode, resume
wiki work from durable task_pending_ops and surface SERVER_RESTART errors
in the processing timeline with i18n support.
This commit is contained in:
wizardchen
2026-07-14 17:20:22 +08:00
committed by lyingbug
parent 28ebcf2525
commit ace84bc757
12 changed files with 462 additions and 74 deletions
+2
View File
@@ -884,6 +884,8 @@ export default {
MULTIMODAL_ALL_FAILED_SUGGESTION: 'Verify the multimodal model configuration.',
TASK_TIMEOUT: 'Task exceeded maximum runtime',
TASK_TIMEOUT_SUGGESTION: 'The task ran longer than allowed. Retry or contact support.',
SERVER_RESTART: 'Task interrupted by server restart',
SERVER_RESTART_SUGGESTION: 'Redis-backed tasks retry from the queue; recoverable Wiki work also resumes in Lite mode. Retry if this task remains failed.',
UPSTREAM_FAILED: 'Stopped because an upstream stage failed',
UPSTREAM_FAILED_SUGGESTION: 'A previous stage failed and prevented this step from running.',
UNKNOWN: 'Unknown error',