Now, the Amazon ECS service scheduler includes logic that checks for tasks that continuously fail to become healthy after instantiation, increases the duration between restart attempts, eventually increasing the duration to 15 minutes, and adds an event to the Amazon ECS service event messages so you can take corrective action. This logic works for tasks using both the AWS Fargate and EC2 launch types.