[Bugfix] Register statistics for dynamically added replicas (#7298)
Signed-off-by: leegangtoe <leegangtoe@gmail.com>
This commit is contained in:
1 parent
51c715c7ef
commit
fa506e0fe8
3 files changed
+167
-12
No files matched your search
@@ -785,6 +785,11 @@ class OrchestratorBase:
|
||||
iteration_stats=iteration_stats,
|
||||
)
|
||||
if self._stat_logger is not None and (raw_outputs.scheduler_stats is not None or iteration_stats is not None):
|
||||
key = (stage_id, replica_id)
|
||||
if key not in self._stage_replica_to_engine_idx:
|
||||
engine_idx = len(self._stage_replica_to_engine_idx)
|
||||
self._stat_logger.register_replica(engine_idx, str(stage_id), str(replica_id))
|
||||
self._stage_replica_to_engine_idx[key] = engine_idx
|
||||
self._stat_logger.record(
|
||||
raw_outputs.scheduler_stats,
|
||||
iteration_stats,
|
||||
|
||||
Reference in new issue
Block a user