Exemple #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
    itest_utils.wait_for_app_to_launch_tasks(client,
                                             app_id,
                                             task_count,
                                             exact_matches_only=True)
Exemple #2
0
def wait_launch_tasks(context, job_id, task_count):
    (service, instance, _, __) = decompose_job_id(job_id)
    job_config = marathon_tools.load_marathon_service_config(
        service=service,
        instance=instance,
        cluster=load_system_paasta_config().get_cluster(),
        soa_dir=context.soa_dir,
    )
    app_id = job_config.format_marathon_app_dict()['id']
    client = context.marathon_clients.get_current_client_for_service(job_config)
    itest_utils.wait_for_app_to_launch_tasks(client, app_id, task_count, exact_matches_only=True)
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 """
    itest_utils.wait_for_app_to_launch_tasks(context.marathon_client, app_id, num)
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 """
    itest_utils.wait_for_app_to_launch_tasks(
        context.marathon_clients.current[0], app_id, num)
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
    itest_utils.wait_for_app_to_launch_tasks(client, app_id, task_count, exact_matches_only=True)