feat: Breakdown 恢复任务统一跟踪执行状态
This commit is contained in:
1 parent
2c5a42fa78
commit
9256b900d9
1 file changed
+3
-5
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user