aztk/client/base/helpers/get_application_log.py
def __wait_for_app_to_be_running(base_operations, cluster_id: str, application_name: str) -> Task:
    """
        Wait for the batch task to leave the waiting state into running(or completed if it was fast enough)
    """

    while True:
        task_state = base_operations.get_task_state(cluster_id, application_name)

        if task_state in [batch_models.TaskState.active, batch_models.TaskState.preparing]:
            # TODO: log
            time.sleep(5)
        else:
            return base_operations.get_batch_task(id=cluster_id, task_id=application_name)

        Wait for the batch task to leave the waiting state into running(or completed if it was fast enough)
    
Wait for the batch task to leave the waiting state into running(or completed if it was fast enough)
Wait for the batch task to leave the waiting state into running ( or completed if it was fast enough )
def __wait_for_app_to_be_running(base_operations, cluster_id: str, application_name: str) -> Task:
    while True:
        task_state = base_operations.get_task_state(cluster_id, application_name)
        if task_state in [batch_models.TaskState.active, batch_models.TaskState.preparing]:
            time.sleep(5)
        else:
            return base_operations.get_batch_task(id=cluster_id, task_id=application_name)
def __wait_for_app_to_be_running ( base_operations , cluster_id : str , application_name : str ) -> Task : while True : task_state = base_operations . get_task_state ( cluster_id , application_name ) if task_state in [ batch_models . TaskState . active , batch_models . TaskState . preparing ] : time . sleep ( 5 ) else : return base_operations . get_batch_task ( id = cluster_id , task_id = application_name )
Wait for the batch task to leave the waiting state into running(or completed if it was fast enough)
Wait for the batch task to leave the waiting state into running ( or completed if it was fast enough )
"""
        Wait for the batch task to leave the waiting state into running(or completed if it was fast enough)
    """ # TODO: log
base_operations
cluster_id
str
application_name
str