

def _task_show(task_id):
    '\n    :param task_id: the task id\n    :type task_id: str\n    :returns: process return code\n    :rtype: int\n    '
    client = marathon.create_client()
    task = client.get_task(task_id)
    if (task is None):
        raise DCOSException("Task '{}' does not exist".format(task_id))
    emitter.publish(task)
    return 0

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