Skip to content

publishDir overwrite does not work during resumed runsΒ #1189

@zanieb

Description

@zanieb

Bug report

Expected behavior and actual behavior

publishDir "${params.outdir}/fastq", mode: 'copy', pattern: 'fastq-merge-lanes/*.fastq', overwrite: true, saveAs: { "${sample_name}.fastq" }`

should overwrite files in outdir but during resume a warning appears

WARN: Failed to publish file: ... to: ... [copy] -- See log file for details

The log clarifies that the file already exists in the output directory.

When -resume is not used, no errors occur. Nextflow appears to be overwriting the specified value for overwrite with its default.

https://www.nextflow.io/docs/latest/process.html#publishdir

Steps to reproduce the problem

  1. Create a process that publishes with overwrite: true
  2. Run nextflow
  3. Run nextflow again with -resume
  4. Failure to publish should ensue

Environment

  • Nextflow version:
      N E X T F L O W
      version 19.04.1 build 5072
      last modified 03-05-2019 12:29 UTC (07:29 CDT)
      cite doi:10.1038/nbt.3820
      http://nextflow.io
  • Java version:
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
  • Operating system: AWS Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions