(options: DAGExecutorOptions)
| 68 | private execLogger: Logger |
| 69 | |
| 70 | constructor(options: DAGExecutorOptions) { |
| 71 | this.workflow = options.workflow |
| 72 | this.environmentVariables = normalizeStringRecord(options.envVarValues) |
| 73 | this.workflowInput = options.workflowInput ?? {} |
| 74 | this.workflowVariables = normalizeWorkflowVariables(options.workflowVariables) |
| 75 | this.contextExtensions = options.contextExtensions ?? {} |
| 76 | this.dagBuilder = new DAGBuilder() |
| 77 | this.execLogger = logger.withMetadata({ |
| 78 | workflowId: this.contextExtensions.metadata?.workflowId, |
| 79 | workspaceId: this.contextExtensions.workspaceId, |
| 80 | executionId: this.contextExtensions.executionId, |
| 81 | userId: this.contextExtensions.userId, |
| 82 | requestId: this.contextExtensions.metadata?.requestId, |
| 83 | }) |
| 84 | } |
| 85 | |
| 86 | async execute(workflowId: string, triggerBlockId?: string): Promise<ExecutionResult> { |
| 87 | const savedIncomingEdges = this.contextExtensions.dagIncomingEdges |
nothing calls this directly
no test coverage detected