View a markdown version of this page

Instance draining and task interruptions - Amazon Batch
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

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.