()
| 4564 | } |
| 4565 | |
| 4566 | async function markRunningStepsStopped() { |
| 4567 | const state = await getState(); |
| 4568 | const runningSteps = getRunningSteps(state.stepStatuses); |
| 4569 | |
| 4570 | for (const step of runningSteps) { |
| 4571 | await setStepStatus(step, 'stopped'); |
| 4572 | } |
| 4573 | } |
| 4574 | |
| 4575 | async function requestStop(options = {}) { |
| 4576 | const { logMessage = '已收到停止请求,正在取消当前操作...' } = options; |
no test coverage detected