This is an automated email from the ASF dual-hosted git repository.
linxinyuan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git
The following commit(s) were added to refs/heads/main by this push:
new 9665130168 fix: resolve runtime statistics display issue (#3713)
9665130168 is described below
commit 96651301682565ca4603d4383613e2cfda27682c
Author: Seongjin Yoon <[email protected]>
AuthorDate: Wed Sep 3 14:23:59 2025 -0700
fix: resolve runtime statistics display issue (#3713)
**Feature:**
Fix runtime statistics display by correcting property name mismatches
between the WorkflowRuntimeStatistics interface and component
implementation.
Closes #3705
https://github.com/user-attachments/assets/63370dc5-891f-4560-ab94-112d414f85a0
Co-authored-by: Seongjin Yoon <[email protected]>
---
.../workflow-runtime-statistics.component.ts | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git
a/core/gui/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-runtime-statistics/workflow-runtime-statistics.component.ts
b/core/gui/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-runtime-statistics/workflow-runtime-statistics.component.ts
index 5ccd58dca8..f1b14c93a7 100644
---
a/core/gui/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-runtime-statistics/workflow-runtime-statistics.component.ts
+++
b/core/gui/src/app/dashboard/component/user/user-workflow/ngbd-modal-workflow-executions/workflow-runtime-statistics/workflow-runtime-statistics.component.ts
@@ -94,9 +94,10 @@ export class WorkflowRuntimeStatisticsComponent implements
OnInit {
const processedStat = {
...stat,
- dataProcessingTime: stat.dataProcessingTime / NANOSECONDS_TO_SECONDS,
- controlProcessingTime: stat.controlProcessingTime /
NANOSECONDS_TO_SECONDS,
- idleTime: stat.idleTime / NANOSECONDS_TO_SECONDS,
+ dataProcessingTime: stat.totalDataProcessingTime /
NANOSECONDS_TO_SECONDS,
+ controlProcessingTime: stat.totalControlProcessingTime /
NANOSECONDS_TO_SECONDS,
+ idleTime: stat.totalIdleTime / NANOSECONDS_TO_SECONDS,
+ numberOfWorkers: stat.numberOfWorkers,
timestamp: stat.timestamp - initialTimestamp,
};
@@ -128,10 +129,10 @@ export class WorkflowRuntimeStatisticsComponent
implements OnInit {
"dataProcessingTime",
"controlProcessingTime",
"idleTime",
- "numWorkers",
+ "numberOfWorkers",
];
- const yValuesKey = metricKeys[metricIndex] || "numWorkers";
+ const yValuesKey = metricKeys[metricIndex] || "numberOfWorkers";
return Object.entries(this.groupedStatistics)
.map(([operatorId, stats]) => {