Skip to content

--mpi-command ignores a custom --completion-file, so --on-complete never fires (sibling of #1131) #1170

Closed

Description

@scttfrdmn

Found while fixing #1131 (PR #1164). That fix covers --command only.

Code evidence (main @ bdf86b9, read from the code, not reproduced on an instance):

  • spored watches config.CompletionFile, set from --completion-file (cmd/launch_config.go:297) and carried by the spawn:completion-file tag (pkg/aws/tags.go:264).
  • The MPI script in pkg/userdata/mpi.go always writes the hardcoded /tmp/SPAWN_COMPLETE:
    • :172, the failure path.
    • spawn_mpi_done at :235 (ssh to each peer: echo '$rec' > /tmp/SPAWN_COMPLETE) and at :240 (local).
    • :253, the non-MPICommand failure path.
  • MPIConfig has no completion-file field (cmd/launch_jobarray.go:171).

Consequence: spawn launch --mpi-command … --completion-file /x --on-complete terminate never signals completion on any member. The cohort bills until TTL. This is the same failure #1131 fixed for --command.

Fix:

Activity

  1. added this to the v0.135.2 milestone on Oct 19, 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions