sandugood commented on code in PR #1547:
URL: 
https://github.com/apache/datafusion-ballista/pull/1547#discussion_r3060840230


##########
ballista/executor/src/executor_server.rs:
##########
@@ -476,12 +497,44 @@ impl<T: 'static + AsLogicalPlan, U: 'static + 
AsExecutionPlan> ExecutorServer<T,
         };
     }
 
-    // TODO populate with real metrics
+    // Getting system-wide executor metrics
     fn get_executor_metrics(&self) -> Vec<ExecutorMetric> {
+        let mut executor_system = self.executor_system.lock().unwrap();
+        let should_refresh = {
+            if executor_system.last_refresh.elapsed() >= 
Duration::from_millis(100) {

Review Comment:
   It is already configured (missed that) with 
ExecutorProcessConfig.executor_heartbeat_interval_seconds



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to