From 184074c6380ee3e8fde73fb8869b95fb5b66130b Mon Sep 17 00:00:00 2001 From: Nick Mitchell Date: Mon, 3 Apr 2023 19:20:14 -0400 Subject: [PATCH] fix: avoid events in dashboard UI for line there's just too many events when running a large number of workers --- .../src/controller/dashboard/status/Live.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/plugin-codeflare-dashboard/src/controller/dashboard/status/Live.ts b/plugins/plugin-codeflare-dashboard/src/controller/dashboard/status/Live.ts index 6523a915..ba0f2480 100644 --- a/plugins/plugin-codeflare-dashboard/src/controller/dashboard/status/Live.ts +++ b/plugins/plugin-codeflare-dashboard/src/controller/dashboard/status/Live.ts @@ -109,7 +109,7 @@ export default class Live { // inform the UI that we have updates cb({ - lines: this.pushLine(data, metric, timestamp), + // lines: this.pushLine(data, metric, timestamp), workers: Object.values(this.workers), }) } @@ -166,7 +166,7 @@ export default class Live { /** `pushLine` and then pass the updated model to `cb` */ private pushLineAndPublish(line: string, metric: WorkerState, timestamp: number, cb: OnData) { - cb({ lines: this.pushLine(line, metric, timestamp), workers: Object.values(this.workers) }) + cb({ /* lines: this.pushLine(line, metric, timestamp), */ workers: Object.values(this.workers) }) } private asMillisSinceEpoch(timestamp: string) {