:doc:`ECS <../../ecs>` / Waiter / TasksRunning

************
TasksRunning
************



.. py:class:: ECS.Waiter.TasksRunning

  ::

    
    waiter = client.get_waiter('tasks_running')

  
  

  .. py:method:: wait(**kwargs)

    Polls :py:meth:`ECS.Client.describe_tasks` every 6 seconds until a successful state is reached. An error is raised after 100 failed checks.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTasks>`_    


    **Request Syntax**
    ::

      waiter.wait(
          cluster='string',
          tasks=[
              'string',
          ],
          include=[
              'TAGS',
          ],
          WaiterConfig={
              'Delay': 123,
              'MaxAttempts': 123
          }
      )
      
    :type cluster: string
    :param cluster: 

      The short name or full Amazon Resource Name (ARN) of the cluster that hosts the task or tasks to describe. If you do not specify a cluster, the default cluster is assumed.

      

    
    :type tasks: list
    :param tasks: **[REQUIRED]** 

      A list of up to 100 task IDs or full ARN entries.

      

    
      - *(string) --* 

      
  
    :type include: list
    :param include: 

      Specifies whether you want to see the resource tags for the task. If ``TAGS`` is specified, the tags are included in the response. If this field is omitted, tags aren't included in the response.

      

    
      - *(string) --* 

      
  
    :type WaiterConfig: dict
    :param WaiterConfig: 

      A dictionary that provides parameters to control waiting behavior.

      

    
      - **Delay** *(integer) --* 

        The amount of time in seconds to wait between attempts. Default: 6

        

      
      - **MaxAttempts** *(integer) --* 

        The maximum number of attempts to be made. Default: 100

        

      
    
    
    :returns: None