feat(system): expand runtime queue task inspection and safe actions
Replace failed-only task views with state-aware runtime task listing, operator-safe cancel/run-now/delete actions, orphan detection, and multimodal queue cleanup for deleted knowledge rows.
This commit is contained in:
@@ -3545,7 +3545,7 @@ export default {
|
||||
},
|
||||
runtime: {
|
||||
title: "Task Queue Runtime",
|
||||
description: "Live background-queue load and per-process capacity for each isolated worker pool. Read-only; auto-refreshes every 5s.",
|
||||
description: "Live background-queue load and per-process capacity for each isolated worker pool. Includes task details and safe controls; auto-refreshes every 5s.",
|
||||
refresh: "Refresh",
|
||||
autoRefresh: "Auto-refresh (every 5s)",
|
||||
loading: "Loading...",
|
||||
@@ -3584,6 +3584,7 @@ export default {
|
||||
scheduled: "Scheduled",
|
||||
retry: "Retry",
|
||||
archived: "Failed",
|
||||
completed: "Completed",
|
||||
latency: "Oldest wait",
|
||||
status: "Status",
|
||||
},
|
||||
@@ -3600,43 +3601,65 @@ export default {
|
||||
title: "{count} failed tasks need attention",
|
||||
description: "Open a red Failed count in the table below to inspect causes, then retry after fixing the root issue.",
|
||||
},
|
||||
failedTasks: {
|
||||
title: "Failed tasks · {queue}",
|
||||
description: "Tasks that stopped after exceeding their automatic retry limit, newest failure first.",
|
||||
guideTitle: "Fix the cause before running again",
|
||||
guideDescription: "Run once performs one immediate attempt without resetting the retry counter. Clear record only removes it from this queue; it does not complete the original task, and historical logs remain.",
|
||||
listTitle: "Failed records",
|
||||
openAria: "View {count} failed tasks in {queue}",
|
||||
unavailable: "Failed-task details are unavailable in this deployment",
|
||||
empty: "This queue has no stopped failed tasks",
|
||||
tasks: {
|
||||
title: "Task details · {queue}",
|
||||
description: "Inspect every task state and use only the actions the backend marks safe for the current task.",
|
||||
listTitle: "{state} tasks",
|
||||
openAria: "View {count} {state} tasks in {queue}",
|
||||
unavailable: "Task details are unavailable in this deployment",
|
||||
empty: "This queue has no {state} tasks",
|
||||
loadError: "Failed to load task details",
|
||||
loadMore: "Load more",
|
||||
loadedSummary: "{count} loaded — scroll or tap to load more",
|
||||
loadedAll: "All {count} loaded",
|
||||
loadingMore: "Loading more…",
|
||||
attempts: "Retry count {count}",
|
||||
attemptsShort: "{count}×",
|
||||
showError: "View error",
|
||||
hideError: "Hide error",
|
||||
lastError: "Last error",
|
||||
noError: "No error details recorded",
|
||||
attempts: "Attempt {current}/{max}",
|
||||
unknownTarget: "No related object identified",
|
||||
knowledgeBaseLabel: "Knowledge base ID",
|
||||
knowledgeLabel: "Document ID",
|
||||
taskIDLabel: "Business task ID",
|
||||
tenantLabel: "Tenant ID",
|
||||
tenant: "Workspace {id}",
|
||||
knowledgeBase: "Knowledge base {id}",
|
||||
knowledge: "Document {id}",
|
||||
taskID: "Business task {id}",
|
||||
retryOnce: "Run once",
|
||||
retryConfirm: "Confirm that the cause has been fixed. This task will run once immediately.",
|
||||
retrySuccess: "Task returned to the queue",
|
||||
retryError: "Failed to run the task",
|
||||
sourceLabel: "Source ID",
|
||||
targetLabel: "Target ID",
|
||||
sourceKBLabel: "Source knowledge base",
|
||||
targetKBLabel: "Target knowledge base",
|
||||
dataSourceLabel: "Data source ID",
|
||||
syncLogLabel: "Sync log ID",
|
||||
knowledgeCountLabel: "Documents",
|
||||
enqueuedAt: "Enqueued",
|
||||
startedAt: "Started",
|
||||
nextProcessAt: "Next run",
|
||||
lastFailedAt: "Last failed",
|
||||
completedAt: "Completed",
|
||||
deadline: "Deadline",
|
||||
worker: "Worker",
|
||||
health: "Runtime health",
|
||||
orphaned: "Worker heartbeat lost; waiting for recovery",
|
||||
cancel: "Cancel task",
|
||||
cancelConfirm: "This uses the business cancellation flow and also stops related tasks for the same document. Cancel it?",
|
||||
runNow: "Run now",
|
||||
runNowConfirm: "This task will move to pending immediately without resetting its retry count. Continue?",
|
||||
deleteRecord: "Clear record",
|
||||
deleteConfirm: "This only removes the record from this queue. It will not run or complete the original task, and historical logs remain. Clear it?",
|
||||
deleteSuccess: "Failure record cleared",
|
||||
deleteError: "Failed to clear the record",
|
||||
stateFilter: "Filter by task state",
|
||||
states: {
|
||||
active: "Active",
|
||||
pending: "Pending",
|
||||
scheduled: "Scheduled",
|
||||
retry: "Retrying",
|
||||
archived: "Failed",
|
||||
completed: "Completed",
|
||||
},
|
||||
guides: {
|
||||
active: "Inspect the worker, start time, deadline, and orphan status. Cancel is offered only when the business state can be updated safely.",
|
||||
pending: "Pending tasks have not been claimed. Cancellation updates business state instead of only removing Redis data.",
|
||||
scheduled: "Scheduled tasks can run early; document pipeline tasks can also use safe business cancellation.",
|
||||
retry: "Use the last error, attempt count, and next run time to decide whether to run now or cancel.",
|
||||
archived: "Fix the root cause before running again. Clearing a record does not complete the original business task.",
|
||||
completed: "Only recently completed tasks with result retention are shown. No management actions are available.",
|
||||
},
|
||||
actionSuccess: { cancel: "Task cancelled", run_now: "Task moved to pending", delete: "Failure record cleared" },
|
||||
actionError: { cancel: "Failed to cancel task", run_now: "Failed to run task", delete: "Failed to clear record" },
|
||||
taskTypes: {
|
||||
documentProcess: "Document parsing",
|
||||
manualProcess: "Manual reprocessing",
|
||||
@@ -3903,6 +3926,8 @@ export default {
|
||||
'system.user_password_reset': 'User password reset',
|
||||
'system.queue_task_retried': 'Failed task run again',
|
||||
'system.queue_task_deleted': 'Failed task record cleared',
|
||||
'system.queue_task_run_now': 'Queue task run now',
|
||||
'system.queue_task_cancelled': 'Queue task cancelled',
|
||||
},
|
||||
outcome: {
|
||||
success: 'Success',
|
||||
|
||||
Reference in New Issue
Block a user