Merge branch 'master' of ssh://gitea.snsd0805.com:10805/snsd0805/gpu-provider

This commit is contained in:
snsd0805 2024-05-31 03:47:27 +08:00
commit a96c6d968e
Signed by: snsd0805
GPG Key ID: 569349933C77A854

View File

@ -97,8 +97,13 @@ class ClusterCommunicationModule():
self.client_sock.send(f'[STOP_CHECK] {json.dumps(data)}'.encode()) self.client_sock.send(f'[STOP_CHECK] {json.dumps(data)}'.encode())
self.node_manager.docker_client.swarm.leave() self.node_manager.docker_client.swarm.leave()
self.node_manager.status = 'none' self.node_manager.status = 'none'
self.node_manager.actions = [
{'explanation': 'Add another node into our cluster', 'function': 'add_node'},
{'explanation': 'Exit', 'function': 'exit'},
]
print("You have leaved the cluster.") print("You have leaved the cluster.")
print("Please Enter to continued")
return False return False