Skip to content

Commit c26eaff

Browse files
committed
Add timestamp in status payload
1 parent 41e62ac commit c26eaff

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python/fedml/core/mlops/mlops_metrics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import requests
88

99
import fedml
10-
from . import MLOpsConfigs
10+
from . import MLOpsConfigs, MLOpsUtils
1111
from .mlops_device_perfs import MLOpsDevicePerfStats
1212
from .mlops_job_perfs import MLOpsJobPerfStats
1313
from ...computing.scheduler.master.server_constants import ServerConstants
@@ -221,6 +221,7 @@ def common_report_server_training_status(self, run_id, status, role=None, edge_i
221221
if role is None:
222222
role = "normal"
223223
msg = {
224+
"timestamp": MLOpsUtils.get_ntp_time(),
224225
"run_id": run_id,
225226
"edge_id": edge_id,
226227
"status": status,

0 commit comments

Comments
 (0)