Instance draining and task interruptions - AWS Batch
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Instance draining and task interruptions

Amazon ECS Managed Instances initiates draining at day 14 from instance launch. When Amazon ECS drains an instance that is running a job, the job's task fails with the stop reason Task stopped during instance draining. Configure a retry strategy on the job or job definition to rerun the job. For more information about instance draining, see Draining Amazon ECS container instances in the Amazon Elastic Container Service Developer Guide.