fix(executor): stop parallel execution when block errors#2940
Merged
waleedlatif1 merged 1 commit intostagingfrom Jan 22, 2026
Merged
fix(executor): stop parallel execution when block errors#2940waleedlatif1 merged 1 commit intostagingfrom
waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryFixed critical bug where parallel execution continued after block errors occurred by implementing an error flag mechanism in the execution engine. Previously, errors in parallel branches were being swallowed via empty Changes include:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Engine as ExecutionEngine
participant Queue as ReadyQueue
participant Tracker as trackExecution
participant Node1 as Node (Parallel 1)
participant Node2 as Node (Parallel 2)
participant ErrorFlag as errorFlag
Engine->>Queue: initializeQueue()
Engine->>Engine: while hasWork()
loop Process Queue
Engine->>Engine: Check errorFlag || cancellation
alt errorFlag is true
Engine->>Engine: break loop
else continue
Engine->>Queue: dequeue()
Engine->>Node1: executeNode() [async]
Engine->>Tracker: trackExecution(promise1)
Tracker->>Tracker: promise.catch(error)
Engine->>Node2: executeNode() [async]
Engine->>Tracker: trackExecution(promise2)
Tracker->>Tracker: promise.catch(error)
end
end
Node1->>Node1: Execution fails
Node1-->>Tracker: throw error
Tracker->>ErrorFlag: Set errorFlag = true
Tracker->>Tracker: Store executionError
Engine->>Engine: Check errorFlag in next iteration
Engine->>Engine: break loop (stop queuing new nodes)
Engine->>Engine: waitForAllExecutions()
Note over Engine,Node2: Node2 completes or fails,<br/>but no new nodes queued
Engine->>Engine: if errorFlag && executionError
Engine->>Engine: throw executionError
Note over Engine: Error propagates to caller<br/>with preserved context
|
waleedlatif1
added a commit
that referenced
this pull request
Jan 22, 2026
…lution consolidation, helm updates (#2946) * improvement(workflow-item): stabilize avatar layout and fix name truncation (#2939) * improvement(workflow-item): stabilize avatar layout and fix name truncation * fix(avatars): revert overflow bg to hardcoded color for contrast * fix(executor): stop parallel execution when block errors (#2940) * improvement(helm): add per-deployment extraVolumes support (#2942) * fix(gmail): expose messageId field in read email block (#2943) * fix(resolver): consolidate reference resolution (#2941) * fix(resolver): consolidate code to resolve references * fix edge cases * use already formatted error * fix multi index * fix backwards compat reachability * handle backwards compatibility accurately * use shared constant correctly * feat(router): expose reasoning output in router v2 block (#2945) * fix(copilot): always allow, credential masking (#2947) * Fix always allow, credential validation * Credential masking * Autoload * fix(executor): handle condition dead-end branches in loops (#2944) --------- Co-authored-by: Vikhyath Mondreti <[email protected]> Co-authored-by: Siddharth Ganesan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
Checklist