MCPcopy Index your code
hub / github.com/simstudioai/sim / markAsFailed

Method markAsFailed

apps/sim/lib/logs/execution/logging-session.ts:1004–1013  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 9

runResumeExecutionMethod · 0.95
handleExecutePostFunction · 0.95
executeWorkflowJobFunction · 0.95
startFunction · 0.80
startFunction · 0.80
runWorkflowExecutionFunction · 0.80
handleExecutionResultFunction · 0.80

Calls 3

waitForCompletionMethod · 0.95
markExecutionAsFailedMethod · 0.80

Tested by

no test coverage detected