Skip to content

docs: warn against head-local foreign db_path with ext.volumes (#65) - #66

Merged
scttfrdmn merged 1 commit into
mainfrom
docs/65-ext-volumes-foreign-path-warning
Jun 16, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
docs/65-ext-volumes-foreign-path-warning

Conversation

@scttfrdmn

Copy link
Copy Markdown
Collaborator

Docs-only follow-up to #65 (closed as not-planned — it's pipeline config, not an nf-spawn defect).

Adds a warning to the ext.volumes "Delivering reference data" section: if the head mounts the DB and db_path resolves to that head-local path, Nextflow's FilePorter treats it as a foreign file and bulk-copies the whole DB (16–34 GB) up to the S3 work dir on the head before any task launches — which can stall and deadlock the run (db channel (queue) OPEN, no tasks submitted).

The note makes explicit that:

  • nf-spawn can't prevent this (it does no head work; the copy is Nextflow's own head-side staging),
  • the head mount exists only to satisfy nf-core's existence check, and
  • db_path should resolve to something the work dir need not localize (work-dir filesystem, pre-staged s3://, or not routed through a head-localized path channel).

Sits right after the existing "head node also needs the DB" guidance, which previously told you to mount it on the head without warning about this consequence. CHANGELOG Documentation note added.

Refs #65.

A volume-backed DB whose db_path resolves to a head-local mount path is treated
by Nextflow's FilePorter as a foreign file and bulk-copied to the (S3) work dir
on the head before any task launches — a 16-34 GB upload that can stall and
deadlock the run (db channel (queue) OPEN, no tasks submitted). nf-spawn does no
head work and can't intercept Nextflow's head-side staging; the fix is in
pipeline config (db_path that the work dir need not localize). Document the
caveat in the ext.volumes reference-data section.

Refs #65
@scttfrdmn
scttfrdmn merged commit 838e59c into main Jun 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant