Skip to content

fix: let forkTask create multiple parallel branches - #186

Open
Apeksha9389 wants to merge 3 commits into
conductor-oss:mainfrom
Apeksha9389:fix/fork-task-branches
Open

Apeksha9389 wants to merge 3 commits into
conductor-oss:mainfrom
Apeksha9389:fix/fork-task-branches

Conversation

@Apeksha9389

Copy link
Copy Markdown

Fixes #94

forkTask() wrapped its argument in a single array, so every task ended up in one branch and there was no way to build a real parallel fork. It now also accepts a list of branches (TaskDefTypes[][]); a flat list keeps the old single-branch behavior, so existing calls are unchanged. The fork example in docs/api-reference/task-generators.md now shows two branches. forkTaskJoin is left alone (it's being changed in #161).

Testing: added a factory test that builds [[a, b], [c]] and checks both branches (fails without the change). Unit suite: 1588/1588 passing; eslint clean.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to implement multiple branches with forkTask

1 participant