From e9240fc9d578dc1b4c8e6ab3550dffab25bd6f2b Mon Sep 17 00:00:00 2001 From: Paolo Di Tommaso Date: Sun, 1 Nov 2020 15:55:23 +0100 Subject: [PATCH] Add warning for AWS Batch mem request lower than 4 GB --- .../nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy b/modules/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy index 488908eb20..70278e82b3 100644 --- a/modules/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy +++ b/modules/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy @@ -546,8 +546,13 @@ class AwsBatchTaskHandler extends TaskHandler implements BatchHandler= 4 ) + container.memory = mega + else + log.warn "Ignoring task $bean.name memory directive: ${task.config.getMemory()} -- AWS Batch job memory request cannot be lower than 4 MB" + } // set the task cpus if( task.config.getCpus() > 1 ) container.vcpus = task.config.getCpus()