gracecluvohio commented on code in PR #4612:
URL: https://github.com/apache/texera/pull/4612#discussion_r3177271647


##########
frontend/src/app/dashboard/component/user/user-computing-unit/user-computing-unit.component.ts:
##########
@@ -145,6 +146,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();
+      });

Review Comment:
   Unless I'm mistaken, I don't think the existing services we have expose 
"messages" or events sent from the backend, they just expose functionality for 
refreshing all of the computing units. I think a timer based refreshing is most 
consistent with the functions we currently have. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to