让立即运行直接恢复任务

This commit is contained in:
ji ruo committed 2026-10-10 08:50:15 +08:00
1 parent 8067f3286b
commit 8a1c9debbb
2 files changed
+18 -4

No files matched your search

@@ -528,7 +528,9 @@ export default function SchedulesPage() {
else {
const result = await api.runScheduleNow(id);
if (result.errors?.length) {
toast.warning(`已启动 ${result.started} 个任务,但有 ${result.errors.length} 个任务未启动`);
toast.warning(
`已启动 ${result.started} 个任务,但有 ${result.errors.length} 个任务未启动:${result.errors.join(";")}`,
);
} else {
toast.success(`已立即运行 ${result.started} 个任务`);
}