Skip to content
This repository was archived by the owner on Jan 27, 2020. It is now read-only.
This repository was archived by the owner on Jan 27, 2020. It is now read-only.

returnMin() always returns with the total memory #473

@szilvajuhos

Description

@szilvajuhos

Seems returnMin() in nextflow.config is expecting integers:

szilva@galatea ~/dev/forkCAW $ nextflow run test.nf 
N E X T F L O W  ~  version 0.25.6
Launching `test.nf` [prickly_euclid] - revision: 9c68f25573
cat tesERROR ~ No signature of method: returnMin() is applicable for argument types: (nextflow.util.MemoryUnit, nextflow.util.MemoryUnit) values: [16 GB, 104 GB]

 -- Check script 'test.nf' at line: 1 or see '.nextflow.log' file for more details
szilva@galatea ~/dev/forkCAW $ cat test.nf 
println returnMin(params.singleCPUMem * 2 , params.totalMemory)

, so it is always returning with the total memory. Therefore all the memory is assigned to all the time to single processes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions