'How much time ECS Service need to provide a new task using FARGATE_SPOT

I'm using FARGATE_SPOT as a provider and the desired count is 1. I would like to know how much time ECS Service need to provide a new task after AWS send the SIGKILL.

 Service:
    Type: "AWS::ECS::Service"
    Properties:
      ServiceName: service-fargate-spot
      Cluster: !Ref EcsClusterName
      DeploymentConfiguration:
        MinimumHealthyPercent: 100
        MaximumPercent: 200
      DesiredCount: 1
      HealthCheckGracePeriodSeconds: 40
      CapacityProviderStrategy:
        - CapacityProvider: FARGATE_SPOT
          Weight: 1

One running task is enough, but I'd like to not have to wait for the first task to stop before the next one runs.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source