- We have a ecs task running on ECS Fargate on engine version 1.4.0 ( LATEST ). - [As per the documentation, the containers in ecs fargate can be restarted by the ecs agent, if the restartPolicy has been setup and the engine version is 1.4.0 or later.](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/container-restart-policy.html) - Fargate Engine version is 1.4.0  - Container got stopped due to OOM.  - Container restart policy has been setup.  - The container was up for good amount of time. At least, more than 60 seconds, that's configured in restartPolicy. 