예제 #1
0
def wait_launch_tasks(context, job_id, task_count):
    (service, instance, _, __) = decompose_job_id(job_id)
    app_id = marathon_tools.create_complete_config(
        service, instance, soa_dir=context.soa_dir)['id']
    client = context.marathon_client
    marathon_tools.wait_for_app_to_launch_tasks(client,
                                                app_id,
                                                task_count,
                                                exact_matches_only=True)
예제 #2
0
def marathon_task_is_ready(context, app_id):
    """Wait for a task with a matching task name to be ready. time out in 60 seconds """
    marathon_tools.wait_for_app_to_launch_tasks(context.marathon_client,
                                                app_id, 1)
예제 #3
0
def wait_launch_tasks(context, job_id, task_count):
    (service, instance, _, __) = decompose_job_id(job_id)
    app_id = marathon_tools.create_complete_config(service, instance, None, soa_dir=context.soa_dir)['id']
    client = context.marathon_client
    marathon_tools.wait_for_app_to_launch_tasks(client, app_id, task_count, exact_matches_only=True)
예제 #4
0
def marathon_task_is_ready(context, app_id):
    """Wait for a task with a matching task name to be ready. time out in 60 seconds """
    marathon_tools.wait_for_app_to_launch_tasks(context.marathon_client, app_id, 1)
예제 #5
0
def marathon_tasks_are_ready(context, num, app_id):
    """Wait for the specified number of  tasks with matching task names to be ready. time out in 60 seconds """
    marathon_tools.wait_for_app_to_launch_tasks(context.marathon_client, app_id, num)
예제 #6
0
def marathon_tasks_are_ready(context, num, app_id):
    """Wait for the specified number of  tasks with matching task names to be ready. time out in 60 seconds """
    marathon_tools.wait_for_app_to_launch_tasks(context.marathon_client,
                                                app_id, num)