Run multi-target commands in parallel #75

Merged
jared merged 1 commits from parallel-targets into main 2026-11-23 13:15:19 -05:00
Owner

Closes #26. There's no visual change.

  • Workflow execute steps send the command to all targets at once and wait for every result. One slow or hung worker no longer holds up the others, and the step fails if any target fails.
    • parallel: false keeps the old one-at-a-time order for rolling changes, stopping at the first failure.
    • Log entries are appended atomically in SQL (JSON_ARRAY_APPEND), so targets running at the same time can't lose each other's entries.
  • Quick Command's multi-worker mode sends to every selected worker at once. The results table keeps the order you selected.
  • README: documents the parallel field.

Tests (integration, 19/19 for workflows locally):

  • three workers each sleeping 2 s finish in about 2 s, where in sequence it would take at least 6 s;
  • parallel: false takes at least 6 s;
  • one failing target fails the step only after every target has reported.

I left out the issue's suggested batch endpoint: the browser now sends the requests in parallel itself.

🤖 Generated with Claude Code

Closes #26. There's no visual change. - **Workflow `execute` steps** send the command to all targets at once and wait for every result. One slow or hung worker no longer holds up the others, and the step fails if any target fails. - **`parallel: false`** keeps the old one-at-a-time order for rolling changes, stopping at the first failure. - Log entries are appended atomically in SQL (`JSON_ARRAY_APPEND`), so targets running at the same time can't lose each other's entries. - **Quick Command's multi-worker mode** sends to every selected worker at once. The results table keeps the order you selected. - **README:** documents the `parallel` field. **Tests** (integration, 19/19 for workflows locally): - three workers each sleeping 2 s finish in about 2 s, where in sequence it would take at least 6 s; - `parallel: false` takes at least 6 s; - one failing target fails the step only after every target has reported. I left out the issue's suggested batch endpoint: the browser now sends the requests in parallel itself. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-23 13:07:37 -05:00
Run multi-target commands in parallel (#26)
CI / Lint (eslint) (pull_request) Successful in 27s
CI / Test (jest) (pull_request) Successful in 19s
CI / Security (npm audit) (pull_request) Successful in 12s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m58s
CI / Integration (api) (pull_request) Successful in 2m49s
CI / UI (playwright) (pull_request) Successful in 2m15s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 2m6s
abb4b9326f
- Workflow execute steps send to all targets at once and wait for every
  result (Promise.all), so one slow or hung worker no longer holds up the
  rest; any failed target fails the step. parallel: false keeps the old
  one-at-a-time order, stopping at the first failure, for rolling changes.
  (Log appends are atomic in SQL, so concurrent targets can't lose
  entries.)
- Quick Command's multi-worker mode sends to every selected worker at once.
- Integration tests: 3 workers x 2 s finish in about 2 s; parallel: false
  takes 6 s or more; one failing target fails the step after all report.
- README: the parallel field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared merged commit a945cd80d3 into main 2026-11-23 13:15:19 -05:00
jared deleted branch parallel-targets 2026-11-23 13:15:27 -05:00
Sign in to join this conversation.