1
0
Fork 0
mirror of https://github.com/MillironX/nf-configs.git synced 2024-12-22 10:38:16 +00:00

Merge pull request #293 from pontus/bugfix/issue_291_part1

Make memory checks use closed intervals
This commit is contained in:
Phil Ewels 2021-11-02 08:54:14 +01:00 committed by GitHub
commit 0600ac1293
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,11 +24,11 @@ try {
def clusterOptionsCreator = { m ->
String base = "-A $params.project ${params.clusterOptions ?: ''}"
// Do not use -p node on irma or if a thin node/core is enough
if (m < 125.GB || hostname ==~ "i.*") {
if (m <= 125.GB || hostname ==~ "i.*") {
return base
}
if (m < 250.GB) {
if (m <= 250.GB) {
return base + " -p node -C mem256GB "
}