Skip to content

Commit bdf0ad0

Browse files
authored
Fix Fargate warning on memory check (#5475)
1 parent cd8c385 commit bdf0ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ class AwsBatchTaskHandler extends TaskHandler implements BatchHandler<String,Job
931931
final slot = FARGATE_MEM.get(cpus)
932932
if( slot==null )
933933
throw new ProcessUnrecoverableException("Requirement of $cpus CPUs is not allowed by Fargate -- Check process with name '${task.lazyName()}'")
934-
if( mega <=slot.min ) {
934+
if( mega <slot.min ) {
935935
log.warn "Process '${task.lazyName()}' memory requirement of ${mem} is below the minimum allowed by Fargate of ${MemoryUnit.of(mega+'MB')}"
936936
return slot.min
937937
}

0 commit comments

Comments
 (0)