Skip to content

Commit

Permalink
fixed #66: received three FINISH messages
Browse files Browse the repository at this point in the history
  • Loading branch information
alex.liang committed Jun 6, 2022
1 parent d0588bc commit 1980e0a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions python/fedml/cli/edge_deployment/client_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,6 @@ def callback_stop_train(self, topic, payload):
self.request_json = request_json
multiprocessing.Process(target=self.stop_run).start()

self.mlops_metrics.report_client_training_status(self.edge_id, MqttManager.MSG_MLOPS_CLIENT_STATUS_FINISHED)

def cleanup_client_with_finished_status(self):
self.setup_client_mqtt_mgr()

Expand Down Expand Up @@ -470,8 +468,6 @@ def callback_runner_id_status(self, topic, payload):
self.request_json = request_json
multiprocessing.Process(target=self.cleanup_client_with_finished_status).start()

self.mlops_metrics.report_client_training_status(self.edge_id, MqttManager.MSG_MLOPS_CLIENT_STATUS_FINISHED)

@staticmethod
def get_device_id():
if "nt" in os.name:
Expand Down
4 changes: 0 additions & 4 deletions python/fedml/cli/server_deployment/server_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,10 @@ def reset_all_devices_status(self):
edge_id_list = self.request_json["edgeids"]
for edge_id in edge_id_list:
self.mlops_metrics.report_client_training_status(edge_id, MqttManager.MSG_MLOPS_CLIENT_STATUS_IDLE)
time.sleep(1)
time.sleep(3)

def stop_run(self):
self.setup_client_mqtt_mgr()

self.reset_all_devices_status()

FedMLServerRunner.cleanup_learning_process()

try:
Expand Down

0 comments on commit 1980e0a

Please sign in to comment.