feat: Breakdown 恢复任务统一跟踪执行状态

This commit is contained in:
GouJ committed 2026-09-26 20:17:04 +08:00
1 parent 2c5a42fa78
commit 9256b900d9
1 file changed
+3 -5
+3 -5
View File
@@ -133,11 +133,9 @@ async function run(action: BreakdownAction) {
}
const id = project.value.id
await runOperation(id, labels[action], async () => {
const result = await breakdownApi.run(id, action, action === 'start' ? input.value : undefined)
if (action === 'start' && 'executionId' in result) {
await backgroundExecution.track(result.executionId)
}
return result
const started = await breakdownApi.run(id, action, action === 'start' ? input.value : undefined)
await backgroundExecution.track(started.executionId)
return started
})
await refresh()
}