You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Fair enough, would you consider implementing rounding up to the next valid CPU quantity, this would be immensely helpful when adapting workflows to work on AWS Fargate.
I don't have enough experience with Groovy or Java to feel comfortable doing that, but the Copilot answer is to add a function like
Integer roundUpCpu(Integer cpus) {
def maxCpus = FARGATE_MEM.keySet().max()
if (cpus > maxCpus) {
throw new ProcessUnrecoverableException("Requirement of $cpus CPUs is not allowed by Fargate. The maximum allowed is $maxCpus CPUs.")
}
def validCpus = FARGATE_MEM.keySet().findAll { it >= cpus }
return validCpus.min()
}
When running wf-human-variation from ONT on AWSBatch Fargate, I get this error
From what I can tell it's because the requested CPU value does not match one from the list found here:
nextflow/plugins/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchTaskHandler.groovy
Lines 923 to 943 in 944f48f
It seems a bit restrictive to require specific CPU values, am I doing something wrong or is that in fact the case?
The text was updated successfully, but these errors were encountered: