Skip to content

Commit 184074c

Browse files
committed
fix: avoid events in dashboard UI for line
there's just too many events when running a large number of workers
1 parent 22433e6 commit 184074c

File tree

1 file changed

+2
-2
lines changed
  • plugins/plugin-codeflare-dashboard/src/controller/dashboard/status

1 file changed

+2
-2
lines changed

Diff for: plugins/plugin-codeflare-dashboard/src/controller/dashboard/status/Live.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default class Live {
109109

110110
// inform the UI that we have updates
111111
cb({
112-
lines: this.pushLine(data, metric, timestamp),
112+
// lines: this.pushLine(data, metric, timestamp),
113113
workers: Object.values(this.workers),
114114
})
115115
}
@@ -166,7 +166,7 @@ export default class Live {
166166

167167
/** `pushLine` and then pass the updated model to `cb` */
168168
private pushLineAndPublish(line: string, metric: WorkerState, timestamp: number, cb: OnData) {
169-
cb({ lines: this.pushLine(line, metric, timestamp), workers: Object.values(this.workers) })
169+
cb({ /* lines: this.pushLine(line, metric, timestamp), */ workers: Object.values(this.workers) })
170170
}
171171

172172
private asMillisSinceEpoch(timestamp: string) {

0 commit comments

Comments
 (0)