Direkt zum Inhalt

ECR: Task showing pending for more than an hour

0
  • Are you using Fargate or EC2? After the timeout (which would be around 15 min, not 1 hour), what is the error showing on the Task?

gefragt vor 2 Jahren626 Aufrufe

2 Antworten
0

Hello.

Not sure if it is usual to have a task pending for more than an hour.

There may be a problem with the network settings such as the subnet used by ECS.
How about checking the following documents and troubleshooting?
https://repost.aws/knowledge-center/ecs-fargate-tasks-pending-state

EXPERTE

beantwortet vor 2 Jahren

0

There could be multiple reasons to see this behavior :

  1. Verify that your task definition is not seeking more resources (cpu, memory etc.) than what the container instance can offer. This could lead to insufficient resources situation

  2. Check for any task placement constraints that might be disallowing the task to be scheduled on the lone container instance you have in your setup as per https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html

  3. I would also suggest to verify your task definition for any syntax errors or missing any mandatory parameters.

  4. Would also suggest to check the desired count and deployment configuration for your ecs service to ensure it meets the task demands. https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html#deployment-configuration-ecs

AWS

beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.