nextflow-io/nextflow

AWS Batch Fargate requires exact CPU values?

Open

#5,781 opened on Feb 12, 2025

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Groovy (3,382 stars) (784 forks)batch import
executor/aws-batchgood first issue

Description

When running wf-human-variation from ONT on AWSBatch Fargate, I get this error

ERROR ~ Error executing process > 'ingress:minimap2_alignment (1)'

Caused by:
  Requirement of 12 CPUs is not allowed by Fargate -- Check process with name 'ingress:minimap2_alignment (1)'

From what I can tell it's because the requested CPU value does not match one from the list found here:

https://github.com/nextflow-io/nextflow/blob/944f48f9b52d47032bf57e16cfe11fe9410972b2/plugins/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy#L923-L943

It seems a bit restrictive to require specific CPU values, am I doing something wrong or is that in fact the case?

Contributor guide