Function
finalize
(
succeeded: boolean,
durationMs?: number,
_finalizeOptions?: PipelineFinalizeOptions,
)
Source from the content-addressed store, hash-verified
| 280 | }, |
| 281 | |
| 282 | finalize( |
| 283 | succeeded: boolean, |
| 284 | durationMs?: number, |
| 285 | _finalizeOptions?: PipelineFinalizeOptions, |
| 286 | ): PipelineResult { |
| 287 | parser.flush(); |
| 288 | logCapture.close(); |
| 289 | |
| 290 | const debugPath = debugCapture.flush(); |
| 291 | if (debugPath) { |
| 292 | appLog( |
| 293 | 'info', |
| 294 | `[Pipeline] ${debugCapture.count} unrecognized parser lines written to ${debugPath}`, |
| 295 | ); |
| 296 | } |
| 297 | |
| 298 | const finalState = runState.finalize(succeeded, durationMs); |
| 299 | |
| 300 | return { |
| 301 | state: finalState, |
| 302 | }; |
| 303 | }, |
| 304 | |
| 305 | highestStageRank(): number { |
| 306 | return runState.highestStageRank(); |
Callers
nothing calls this directly
Tested by
no test coverage detected