This is an automated email from the ASF dual-hosted git repository.

Yicong-Huang pushed a commit to branch release/v1.2
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/release/v1.2 by this push:
     new 12baa79809 fix(ui): update computing unit status on /compute tab every 
second (#4612) [release/v1.2 backport] (#5934)
12baa79809 is described below

commit 12baa798098e6c9eb1914b4e167e287d1ece4112
Author: Xuan Gu <[email protected]>
AuthorDate: Wed Jun 24 14:03:40 2026 -0700

    fix(ui): update computing unit status on /compute tab every second (#4612) 
[release/v1.2 backport] (#5934)
    
    ### What changes were proposed in this PR?
    
    Backport of #4612 to `release/v1.2`: the /compute tab now refreshes each
    computing unit's status every second, so the displayed status stays
    current instead of going stale until a manual refresh.
    
    Clean `git cherry-pick -x` of the original squash commit (`891d2adbc`),
    +7/-0 in one file (`user-computing-unit.component.ts`), byte-identical
    to `main`.
    
    ### Any related issues, documentation, discussions?
    
    Backports #4612
    
    ### How was this PR tested?
    
    Covered by CI; the change is a small frontend polling addition that was
    verified on `main` as part of #4612.
    
    ### Was this PR authored or co-authored using generative AI tooling?
    
    Backport prepared with Claude Code (Claude Opus 4.8).
    
    Signed-off-by: Grace Chia <[email protected]>
---
 .../user/user-computing-unit/user-computing-unit.component.ts      | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/frontend/src/app/dashboard/component/user/user-computing-unit/user-computing-unit.component.ts
 
b/frontend/src/app/dashboard/component/user/user-computing-unit/user-computing-unit.component.ts
index 93eb761ff1..b7400f036b 100644
--- 
a/frontend/src/app/dashboard/component/user/user-computing-unit/user-computing-unit.component.ts
+++ 
b/frontend/src/app/dashboard/component/user/user-computing-unit/user-computing-unit.component.ts
@@ -39,6 +39,7 @@ import {
   getJvmMemorySliderConfig,
 } from "../../../../common/util/computing-unit.util";
 import { ComputingUnitActionsService } from 
"../../../../common/service/computing-unit/computing-unit-actions/computing-unit-actions.service";
+import { interval } from "rxjs";
 import { NzCardComponent } from "ng-zorro-antd/card";
 import { NzSpaceCompactItemDirective } from "ng-zorro-antd/space";
 import { NzButtonComponent } from "ng-zorro-antd/button";
@@ -184,6 +185,12 @@ export class UserComputingUnitComponent implements OnInit {
         this.allComputingUnits = units;
         this.entries = units.map(u => new DashboardEntry(u));
       });
+
+    interval(1000)
+      .pipe(untilDestroyed(this))
+      .subscribe(() => {
+        this.computingUnitStatusService.refreshComputingUnitList();
+      });
   }
 
   terminateComputingUnit(cuid: number): void {

Reply via email to