Skip to content

Commit

Permalink
Fix Fargate warning on memory check (#5475)
Browse files Browse the repository at this point in the history
  • Loading branch information
SPPearce authored Nov 8, 2024
1 parent cd8c385 commit bdf0ad0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ class AwsBatchTaskHandler extends TaskHandler implements BatchHandler<String,Job
final slot = FARGATE_MEM.get(cpus)
if( slot==null )
throw new ProcessUnrecoverableException("Requirement of $cpus CPUs is not allowed by Fargate -- Check process with name '${task.lazyName()}'")
if( mega <=slot.min ) {
if( mega <slot.min ) {
log.warn "Process '${task.lazyName()}' memory requirement of ${mem} is below the minimum allowed by Fargate of ${MemoryUnit.of(mega+'MB')}"
return slot.min
}
Expand Down

0 comments on commit bdf0ad0

Please sign in to comment.