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

Method constructor

apps/sim/executor/execution/engine.ts:43–59  ·  view source on GitHub ↗
(
    private context: ExecutionContext,
    private dag: DAG,
    private edgeManager: EdgeManager,
    private nodeOrchestrator: NodeExecutionOrchestrator
  )

Source from the content-addressed store, hash-verified

41 private execLogger: Logger
42
43 constructor(
44 private context: ExecutionContext,
45 private dag: DAG,
46 private edgeManager: EdgeManager,
47 private nodeOrchestrator: NodeExecutionOrchestrator
48 ) {
49 this.allowResumeTriggers = this.context.metadata.resumeFromSnapshot === true
50 this.execLogger = logger.withMetadata({
51 workflowId: this.context.workflowId,
52 workspaceId: this.context.workspaceId,
53 executionId: this.context.executionId,
54 userId: this.context.userId,
55 requestId: this.context.metadata.requestId,
56 })
57 this.initializeAbortHandler()
58 this.subscribeToCancellationChannel()
59 }
60
61 private subscribeToCancellationChannel(): void {
62 if (!this.context.executionId) return

Callers

nothing calls this directly

Calls 3

withMetadataMethod · 0.45

Tested by

no test coverage detected