(
owners: RuntimeRunOwnerScope,
run: AgentRun,
execution: PendingExecutionClaim,
error: unknown,
)
| 1867 | } |
| 1868 | |
| 1869 | private async finalizeFailedRunStart( |
| 1870 | owners: RuntimeRunOwnerScope, |
| 1871 | run: AgentRun, |
| 1872 | execution: PendingExecutionClaim, |
| 1873 | error: unknown, |
| 1874 | ): Promise<void> { |
| 1875 | try { |
| 1876 | await owners.failStart(error); |
| 1877 | } catch (failure) { |
| 1878 | if (run.isStopped() && isExecutionCancellation(failure, execution.cancellation)) return; |
| 1879 | throw failure; |
| 1880 | } |
| 1881 | } |
| 1882 | |
| 1883 | private createRunOwnerScope( |
| 1884 | run: AgentRun, |
no test coverage detected