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
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
- 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>
This commit is contained in:
1 parent
06d6c72709
commit
abb4b9326f
4 files changed
+63
-33
No files matched your search
@@ -354,7 +354,7 @@ A workflow is a JSON definition with a list of steps, created on the **Workflows
|
||||
|
||||
| Step type | Fields | What it does |
|
||||
|---|---|---|
|
||||
| `execute` | `command`, `targets` (`["all"]` or worker names/ids; default all), `condition`, `timeout` (seconds, 5 to 600), `retries` (0 to 5), `retryDelayMs` | Runs the command on each target; a failure fails the workflow |
|
||||
| `execute` | `command`, `targets` (`["all"]` or worker names/ids; default all), `condition`, `timeout` (seconds, 5 to 600), `retries` (0 to 5), `retryDelayMs`, `parallel` (default true) | Runs the command on all targets at once (`parallel: false`: one after another, stopping at the first failure); a failure on any target fails the workflow |
|
||||
| `parse` | `condition` | Reads `KEY=VALUE` lines (key in capitals) from the last command's output into `state.key` (lower case) |
|
||||
| `route` | `conditions`: `[{ "if", "goto", "label" }, { "default": true, "goto" }]` | Jumps to the first matching condition's step |
|
||||
| `prompt` | `message`, `options`, `key`, `routes` (`{ "<option>": "<step id>" }`) | Waits for someone to answer in the UI (up to 60 min, never past the execution's time limit). An unanswered prompt fails the workflow |
|
||||
|
||||
Reference in new issue
Block a user