amazon-web-servicesamazon-cloudwatchaws-fargateaws-batch

AWS batch with fargate job stuck on RUNNABLE


I am using AWS batch with Fargate to run a docker image I built (the job). I have set up everything as the docs specifiy. I checked that my job has vCPU lower then the compute environment etc.. But when submitting a job it remains RUNNABLE indefinitely. I saw that Fargate automaticaly uses CloudWatch logs for AWS log events, but when checking, I saw there is only a log group named aws/batch/job with no log streams.

Any idea what might cause this (preferably the RUNNABLE problem but even only the logs issue can help)? new to AWS batch and fargate and have been searching the internet to found all answers repeating on themselves with no actual insights.


Solution

  • Turns out it was Fargate's default CPU limit for my region. I thought for some reason that the limit would be higher, but found out that it is only 6 CPUs per region. When lowered the job definition to 4 CPUs, everything worked perfectly.