Crashing ECS Scheduled Task Remains Running

2

We have a Java Spring Boot ECS Fargate Scheduled Task that has been running every hour for many months with no issues. On April 8, we noticed that our containers stopped terminating themselves on failure, and we racked up a decent bill once we noticed that we had hundreds of "running" containers that were simply doing nothing. I've looked at the logs and while we did see a spate of failures recently, we've seen similar/identical errors previously but with containers that terminated themselves. These tasks are connecting to Redis and getting an OOM error (which still needs looked into as well), but I think that problem simply surfaced this other much more costly problem. Has there been a change in behavior for scheduled tasks?

1개 답변
0
수락된 답변

If the process started by the ENTRYPOINT does not terminate instance will remain running. That is the only way I know to have a container instance self-terminate.

profile picture
답변함 일 년 전
  • Turns out, we had added a service that was holding a thread open and preventing the rest of the container from terminating.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠