You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--mpi-command ignores a custom --completion-file, so --on-complete never fires (sibling of #1131) #1170
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:
Add a completion path to MPIConfig and render it shell-quoted at every write site.
The peer write goes through ssh "<cmd>", so the path needs quoting for the remote shell as well.
Activity