Play a Workflow
WorktreeWise allows you to execute workflows across multiple worktrees either sequentially or in parallel, depending on your needs.
How to Play a Workflow
- Navigate to the Workflows section.
- Select the workflow you want to run.
- Choose the execution mode:
- Sequential Execution: Runs commands one after another in each worktree.
- Parallel Execution: Runs commands simultaneously across selected worktrees.
- Choose the worktrees on which you want the workflow to run.
- Click on the Play Workflow button.
- Monitor execution logs to track progress.
Sequential vs Parallel Execution
| Execution Mode | Description |
|---|---|
| Sequential | Ensures commands are executed in order, one after the other. Useful for workflows that depend on prior steps. |
| Parallel | Executes commands across all selected worktrees simultaneously. Recommended for independent tasks to save time. |
Monitoring Workflow Execution
- Once started, you can view real-time logs of each command’s execution.
- If an error occurs, WorktreeWise will highlight failed steps and their output.
Ensure that your workflow does not contain interdependent commands when running in parallel to avoid conflicts.