:doc:`Omics <../../omics>` / Waiter / RunCompleted

************
RunCompleted
************



.. py:class:: Omics.Waiter.RunCompleted

  ::

    
    waiter = client.get_waiter('run_completed')

  
  

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

    Polls :py:meth:`Omics.Client.get_run` every 30 seconds until a successful state is reached. An error is raised after 20 failed checks.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/omics-2022-11-28/GetRun>`_    


    **Request Syntax**
    ::

      waiter.wait(
          id='string',
          export=[
              'DEFINITION',
          ],
          WaiterConfig={
              'Delay': 123,
              'MaxAttempts': 123
          }
      )
      
    :type id: string
    :param id: **[REQUIRED]** 

      The run's ID.

      

    
    :type export: list
    :param export: 

      The run's export format.

      

    
      - *(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: 30

        

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

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

        

      
    
    
    :returns: None