

def _task_list(app_id, json_):
    '\n    :param app_id: the id of the application\n    :type app_id: str\n    :param json_: output json if True\n    :type json_: bool\n    :returns: process return code\n    :rtype: int\n    '
    client = marathon.create_client()
    tasks = client.get_tasks(app_id)
    emitting.publish_table(emitter, tasks, tables.app_task_table, json_)
    return 0

dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py _task_list/original