FANNG1 commented on code in PR #10110:
URL: https://github.com/apache/gravitino/pull/10110#discussion_r2878902766


##########
maintenance/optimizer/src/main/java/org/apache/gravitino/maintenance/optimizer/recommender/Recommender.java:
##########
@@ -336,13 +435,60 @@ private void logRecommendation(String strategyName, 
StrategyEvaluation evaluatio
                     new IllegalStateException(
                         "Job execution context is missing for evaluation of 
strategy "
                             + strategyName));
-    System.out.println(
-        String.format(
-            "RECOMMEND: strategy=%s identifier=%s score=%d jobTemplate=%s 
jobOptions=%s",
-            strategyName,
-            jobExecutionContext.nameIdentifier(),
-            evaluation.score(),
-            jobExecutionContext.jobTemplateName(),
-            jobExecutionContext.jobOptions()));
+    return new RecommendationResult(
+        strategyName,
+        jobExecutionContext.nameIdentifier(),
+        evaluation.score(),
+        jobExecutionContext.jobTemplateName(),
+        jobExecutionContext.jobOptions(),
+        jobId);
+  }
+
+  public static final class RecommendationResult {

Review Comment:
   updated



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