def _task_stop(task_id, wipe):

    client = marathon.create_client()
    task = client.stop_task(task_id, wipe)

    if task is None:
        raise DCOSException("Task '{}' does not exist".format(task_id))

    emitter.publish(task)
    return 0
Stop a Marathon task
dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py/_task_stop