示例#1
0
def remove_services():
    """stop all services and remove downloaded docker images
    """
    container_conn = DockerContainerManager()
    container_conn.stop()
    app_stop()
    container_conn.remove_all()
示例#2
0
def clean():
    """Stop the ModelCI service and remove all containers."""
    # remove all services
    container_conn = DockerContainerManager()
    container_conn.stop()
    app_stop()
    container_conn.remove_all()
示例#3
0
def stop_leader_server():
    """shutdown all jobs and save a screenshot, then stop the leader server
    it will broadcast a message to all follower workers
    """
    container_conn = DockerContainerManager()
    container_conn.stop()
    app_stop()
示例#4
0
def stop():
    """Stop the ModelCI service"""
    container_conn = DockerContainerManager()
    container_conn.stop()
    app_stop()