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
SPAWN_COMPLETE created by spored bootstrap, not task completion — tasks appear complete before running #24
/tmp/SPAWN_COMPLETE is created by spored's bootstrap process (signaling "instance is ready") rather than by the nf-spawn task script (signaling "task is done"). As a result, spawn status --check-complete returns 0 (complete) immediately after cloud-init finishes — before the user-data task script has had a chance to run.
Evidence
On a running task instance, 18 min after launch with no FASTQ output:
Cloud-init log: spored installation complete / ✓ Completion signal sent to /tmp/SPAWN_COMPLETE
The instance has 61 GB free disk, no fasterq-dump running, no .exitcode in S3.
Expected
/tmp/SPAWN_COMPLETE should only exist after the nf-spawn task script completes. nf-spawn's staging script (buildStagingScript()) should be the one creating this file as the final step, not spored's bootstrap.
Root cause
spored creates SPAWN_COMPLETE as part of its own boot sequence to signal the instance is SSH-ready. The nf-spawn staging script runs via user-data and presumably also tries to touch SPAWN_COMPLETE after the task — but spored beats it.
Fix options
Have the nf-spawn staging script delete SPAWN_COMPLETE at the start and re-create it at the end (so it's always "this task is done" not "instance is ready")
Use a different completion file name (e.g. TASK_COMPLETE) that spored doesn't touch
Check spawn status for a custom completion file: --completion-file /tmp/NF_TASK_COMPLETE
Context
nf-spawn 0.2.3, spawn 0.36.11
Task instance is an 80 GB t4g.medium running from a custom AMI
Activity
chore(release): v0.2.4 (#26)
fix: localize declared path inputs on the instance (#37) (#38)