Skip to content

First-class job-array reporting: spawn array status/logs/retry/collect/cancel #389

Closed

Description

@scttfrdmn

Problem

Job arrays are managed today only through generic spawn list/status/... --job-array-name filters. A first-class array concept deserves first-class reporting, especially for partial-launch (--min-viable) runs where callers need to know which requested indexes failed, retry only those, and gather per-index logs/outputs. Raised by an external review.

Confirmed current behavior (source: spawn/cmd/launch_jobarray.go, pkg/launcher/bootstrap.go): JOB_ARRAY_SIZE/{total} is the requested count baked into every member; a partial launch under --min-viable leaves index gaps, and there is no built-in per-index retry/collect.

Proposed shape

spawn array status data-proc      # group completion state, which indexes launched/failed
spawn array logs data-proc --index 3
spawn array retry data-proc --failed
spawn array collect data-proc ./results
spawn array cancel data-proc --pending

Related questions to settle: dense vs sparse indexes, failed-member replacement, group completion state, per-index output namespacing, concurrency-limited queueing of the remainder.

Docs note

docs/guides/job-arrays.md documents the verified {total}=requested + index-gap behavior and links here for the reporting/retry gap.

Activity

  1. added
    enhancement
    area:launch
    on Jul 19, 2026
  2. scttfrdmn commented on Jul 19, 2026

    @scttfrdmn
    ContributorAuthor

    PR #395 implements spawn array status/collect/cancel (tag-discovered, surfaces the sparse-index gap). Two sub-commands were deliberately deferred and remain open under this issue:

    • spawn array logs --index N — needs the SSH/SSM exec plumbing factored into a reusable helper (today spawn connect <member> -- tail -f /var/log/spawn-command.log covers it manually).
    • spawn array retry --failed — can't be done faithfully yet: relaunching a missing index needs the original launch config, but that isn't fully recoverable from a surviving member's tags (the spawn:command tag only rides when ≤256 chars, and AMI/subnet/security-group/user-data aren't tagged). Needs either a persisted array record or a config-in-tags expansion first.
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:launchenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions