diff --git a/src/communication.py b/src/communication.py index 2aa9d7e..2fbe81e 100644 --- a/src/communication.py +++ b/src/communication.py @@ -97,8 +97,14 @@ class ClusterCommunicationModule(): self.client_sock.send(f'[STOP_CHECK] {json.dumps(data)}'.encode()) self.node_manager.docker_client.swarm.leave() 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("Please Enter to continued") + return False elif command == '[START_LISTEN_TASK]': self.client_sock.send('[START_LISTEN_TASK_CHECK] {}'.encode())