( run: AutonomyRunRecord, rootDir: string, )
| 317 | } |
| 318 | |
| 319 | async function syncFailedManagedFlowForRun( |
| 320 | run: AutonomyRunRecord, |
| 321 | rootDir: string, |
| 322 | ): Promise<void> { |
| 323 | if (run.parentFlowId && run.parentFlowSyncMode === 'managed') { |
| 324 | await markManagedAutonomyFlowStepFailed({ |
| 325 | flowId: run.parentFlowId, |
| 326 | runId: run.runId, |
| 327 | error: run.error ?? 'Autonomy run failed.', |
| 328 | rootDir, |
| 329 | nowMs: run.endedAt, |
| 330 | }) |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | function matchesActiveAutonomyRunSource( |
| 335 | run: AutonomyRunRecord, |
no test coverage detected