Repository navigation
Job arrays (#24) - #32
Merged
Merged
Conversation
Port `spawn`'s job arrays — N identical, indexed launches from one base config,
a peer of sweeps/queue on the shared FanOut engine.
- core/jobarray.ts: buildJobArray(base, size) → N members, each with a per-index
name + JobArrayMembership; JobArray class mirrors Sweep. Drops any sweep
membership from the base (a launch is one or the other).
- tags.ts: buildJobArrayTags / decodeJobArrayTags — wire-compatible spawn:job-
array-{id,name,size,index}; wired into buildLaunchTags + both providers'
decode; ManagedInstance.jobArray.
- SpawnClient.startJobArray + a "jobarray" progress event; dashboard reuses the
fan-out card; CLI `array <name> --count N` (+ launch flags) and status shows
membership; terminal refreshes on array/orphans.
Scope: launch / status (list) / cancel (terminate). Out (follow-ups): retry
--failed (needs persisted record), logs/collect (need node access). 233 tests,
jobarray.ts 100%.
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.
Ports
spawn's job arrays — N identical, indexed instances from one base config (differing only by index), a peer of the sweeps and queue already shipped, built on the same sharedFanOutengine. Closes #24.src/core/jobarray.ts—buildJobArray(base, size)→ N members, each with a per-index name andJobArrayMembership; aJobArrayclass mirroringSweep. Drops any sweep membership from the base (a launch is one or the other).buildJobArrayTags/decodeJobArrayTagswrite/read the wire-compatiblespawn:job-array-{id,name,size,index}(so Gospawn list --job-array-idsees them; the instance's spored surfacesJOB_ARRAY_INDEX). Wired intobuildLaunchTags+ both providers' decode →ManagedInstance.jobArray.SpawnClient.startJobArray+ ajobarrayprogress event; the dashboard reuses the fan-out card. CLIarray <name> --count N(+ the launch flags);statusshows membership; terminal refreshes onarray/orphans.Scope: launch / status (via
list) / cancel (viaterminate). Out —retry --failed(needs a persisted record → IndexedDB follow-up) andlogs/collect(need node/SSH). Noted in code.233 tests (jobarray.ts 100%), typecheck + build green.