Skip to content

Commit

Permalink
Fix Invalid AWS Fargate CPUs usage error reporting
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Jul 13, 2024
1 parent 3c65ceb commit d9c50e5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ class AwsBatchTaskHandler extends TaskHandler implements BatchHandler<String,Job
final mega = mem.toMega()
final slot = FARGATE_MEM.get(cpus)
if( slot==null )
new ProcessUnrecoverableException("Requirement of $cpus CPUs is not allowed by Fargate -- Check process with name '${task.lazyName()}'")
throw new ProcessUnrecoverableException("Requirement of $cpus CPUs is not allowed by Fargate -- Check process with name '${task.lazyName()}'")
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 d9c50e5

Please sign in to comment.