def remove_services(): """stop all services and remove downloaded docker images """ container_conn = DockerContainerManager() container_conn.stop() app_stop() container_conn.remove_all()
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()
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()
def stop(): """Stop the ModelCI service""" container_conn = DockerContainerManager() container_conn.stop() app_stop()