* Force-fail the execution. Waits for any in-flight completion and drains * pending per-block marker writes first, so a force-fail racing * onBlockStart/onBlockComplete still captures the latest breadcrumb in the fold.
(errorMessage?: string)
| 1002 | * onBlockStart/onBlockComplete still captures the latest breadcrumb in the fold. |
| 1003 | */ |
| 1004 | async markAsFailed(errorMessage?: string): Promise<void> { |
| 1005 | await this.waitForCompletion() |
| 1006 | await this.drainPendingProgressWrites() |
| 1007 | await LoggingSession.markExecutionAsFailed( |
| 1008 | this.executionId, |
| 1009 | errorMessage, |
| 1010 | this.requestId, |
| 1011 | this.workflowId |
| 1012 | ) |
| 1013 | } |
| 1014 | |
| 1015 | /** |
| 1016 | * Force-fail terminal boundary that bypasses completeWorkflowExecution. Folds |
no test coverage detected