From 7f00ed6a65286c0337aa6e9ee4a00cfe79e80293 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 15 Jun 2026 23:10:36 +0800 Subject: [PATCH] fix(task): fix manual retry button visibility and validation - Only show the manual retry button for failed tasks (status === "failed") on the frontend. - Remove the maximum retry limit validation for manual retries in the task executor. - Remove obsolete test cases verifying maximum retry limit for manual retries. --- .../common/admin/task-executions.tsx | 2 +- internal/apps/admin/task/routers_test.go | 29 ------------------- internal/task/executor.go | 4 --- internal/task/executor_test.go | 23 --------------- 4 files changed, 1 insertion(+), 57 deletions(-) diff --git a/frontend/components/common/admin/task-executions.tsx b/frontend/components/common/admin/task-executions.tsx index d9f78e55..c7250960 100644 --- a/frontend/components/common/admin/task-executions.tsx +++ b/frontend/components/common/admin/task-executions.tsx @@ -379,7 +379,7 @@ export function TaskExecutionsManager() { {detailLoading ? : } 刷新详情 - {selectedExecution && selectedExecution.status !== "pending" && selectedExecution.status !== "running" && selectedExecution.retryable && selectedExecution.retry_count < selectedExecution.max_retry && ( + {selectedExecution && selectedExecution.status === "failed" && selectedExecution.retryable && (