( run: AutonomyRunRecord, error: string, nowMs: number, )
| 297 | } |
| 298 | |
| 299 | function failAutonomyRunRecord( |
| 300 | run: AutonomyRunRecord, |
| 301 | error: string, |
| 302 | nowMs: number, |
| 303 | ): AutonomyRunRecord { |
| 304 | return { |
| 305 | ...run, |
| 306 | status: 'failed', |
| 307 | endedAt: nowMs, |
| 308 | error, |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | function recoverStaleActiveAutonomyRun( |
| 313 | run: AutonomyRunRecord, |
no outgoing calls
no test coverage detected