Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,9 @@ class TaskArrayRun extends TaskRun {
return true
}

@Override
List<String> getOutputFilesNames() {
return Collections.<String>emptyList()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import nextflow.Session
import nextflow.container.resolver.ContainerInfo
import nextflow.executor.Executor
import nextflow.executor.TaskArrayExecutor
import nextflow.script.ProcessConfigV2
import spock.lang.Specification
/**
*
Expand Down Expand Up @@ -52,4 +53,19 @@ class TaskArrayRunTest extends Specification {
task.isArray()
}

def 'should not stage output files because it is only a child task launcher' () {
given: 'a typed process'
def config = Mock(ProcessConfigV2)
def processor = Mock(TaskProcessor) { getConfig() >> config }
and: 'an array task whose context has no input variables bound, like the real array parent'
def task = new TaskArrayRun(processor: processor, context: Mock(TaskContext))

when:
def names = task.getOutputFilesNames()

then: 'no output files are returned and the typed output declarations are never evaluated'
names == []
0 * config.getOutputs()
}

}
Loading