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
|
const id = project.value.id
|
||||||
await runOperation(id, labels[action], async () => {
|
await runOperation(id, labels[action], async () => {
|
||||||
const result = await breakdownApi.run(id, action, action === 'start' ? input.value : undefined)
|
const started = await breakdownApi.run(id, action, action === 'start' ? input.value : undefined)
|
||||||
if (action === 'start' && 'executionId' in result) {
|
await backgroundExecution.track(started.executionId)
|
||||||
await backgroundExecution.track(result.executionId)
|
return started
|
||||||
}
|
|
||||||
return result
|
|
||||||
})
|
})
|
||||||
await refresh()
|
await refresh()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user