

def _task_stop(task_id, wipe):
    'Stop a Marathon task\n\n    :param task_id: the id of the task\n    :type task_id: str\n    :param wipe: whether to wipe persistent data and unreserve resources\n    :type wipe: bool\n    :returns: process return code\n    :rtype: int\n    '
    client = marathon.create_client()
    task = client.stop_task(task_id, wipe)
    if (task is None):
        raise DCOSException("Task '{}' does not exist".format(task))
    emitter.publish(task)
    return 0

dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py _task_stop/VarMisuse@49/180 `task_id`->`task`