nishita-09 commented on code in PR #1000:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/1000#discussion_r3056546502


##########
flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/service/AbstractFlinkService.java:
##########
@@ -873,6 +884,308 @@ public JobExceptionsInfoWithHistory getJobExceptions(
         }
     }
 
+    @Override
+    public Map<String, String> getJobConfiguration(Configuration conf, JobID 
jobId)
+            throws Exception {
+        LOG.debug("Fetching job configuration for job {}", jobId);
+        try (var clusterClient = getClusterClient(conf)) {
+            Map<String, String> jobConfig = new HashMap<>();
+
+            var jobConfigHeaders = JobConfigHeaders.getInstance();
+            var parameters = new JobMessageParameters();
+            parameters.jobPathParameter.resolve(jobId);
+
+            try {
+                JobConfigInfo configurationInfo =
+                        clusterClient
+                                .sendRequest(
+                                        jobConfigHeaders,
+                                        parameters,
+                                        EmptyRequestBody.getInstance())
+                                .get(
+                                        
operatorConfig.getFlinkClientTimeout().toSeconds(),
+                                        TimeUnit.SECONDS);
+                if (configurationInfo != null) {
+                    if (configurationInfo.getExecutionConfigInfo() != null) {
+                        jobConfig.put(
+                                "parallelism.default",

Review Comment:
   Yes @gyfora Was going to do it for this as well, like it was done for 
checkpoint configs. Thanks!!



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