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
Job arrays: per-member output is clunky (errexit preamble in every command log, EC2 hostnames, one raw ssh line per member) #897
From spawn launch arr --job-array-name arr --count 8 --instance-type c8a.xlarge --spot --ttl 1h --on-complete terminate -y --command 'echo "member $JOB_ARRAY_INDEX of $JOB_ARRAY_SIZE on $(hostname)"; sleep 45':
1. Every command log starts with shell-option notices:
$ spawn array logs arr --index 3
spawn: shell options for --command: $-=ehB
spawn: errexit is ON. set -uo pipefail does NOT clear it; use set +e to opt out.
member 3 of 8 on ip-172-31-21-42.us-west-2.compute.internal
The warning is useful once, at launch, but it's noise in every member's log, which is what users actually read. Suggest putting it in spored.log, or printing it only when the command fails with errexit-looking exit codes.
2. Members' hostname is the EC2 default, not the member name.--name help says it "sets Name tag, DNS, and hostname", and the members are named arr-3, sim-0, …, but hostname returns ip-172-31-21-42…. The same happens in --mpi cohorts: mpirun hostname prints four ip-172-… names. A hostname like arr-3 would make array and MPI output self-explanatory.
3. The launch summary prints a raw ssh command per member:
Connect to instances:
[0] ssh -i /Users/…/.ssh/id_rsa [email protected]
... (8 lines; 1 per member)
This is long for big arrays, exposes key paths, and bypasses spawn connect. Suggest one line: Connect: spawn connect arr-<index>.
Activity
Tidy job-array output: member hostnames, one connect hint, errexit no…