Skip to content

Job arrays (launch / status / cancel) #24

Closed

Description

@scttfrdmn

Port spawn's job arrays — N indexed members launched from one base config, tagged spawn:job-array-{id,name,index,size}. A peer of the sweeps and queue already ported, built on the same shared src/core/fanout.ts engine.

Go source

  • cmd/launch_jobarray.go (~661 lines), cmd/arraygroup.go (~470, the subcommands), pkg/arrayrec/record.go (local record).
  • Distinct from sweeps: no server-side DynamoDB record; Go persists the launch config to a local file for retry.

Browser feasibility

launch + status + cancel: browser-native (pure TS over tags, mirrors src/core/sweep.ts). Out of scope for v0.4.0: retry --failed (needs a persisted record — IndexedDB follow-up) and logs/collect (need node/SSH access).

Acceptance

  • src/core/jobarray.ts: build N members with spawn:job-array-* tags (mirror buildSweep); SpawnClient.startJobArray (mirror startSweep).
  • decodeJobArrayTags in src/core/tags.ts (mirror decodeSweepTags) → JobArrayMembership on ManagedInstance.
  • CLI array command: launch (from a base spec + --count), status <id>, cancel <id>.
  • Dashboard progress card reused (mirror the sweep/queue card).
  • Tests over MockProvider; instances are wire-compatible with Go spawn list --job-array-id.
  • Non-goals stated in-code: retry/logs/collect.

Size: medium.

Activity

  1. added
    area: core
    on Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions