jerryshao commented on code in PR #8644:
URL: https://github.com/apache/gravitino/pull/8644#discussion_r2377514820


##########
core/src/main/java/org/apache/gravitino/job/JobManager.java:
##########
@@ -503,7 +503,32 @@ void pullAndUpdateJobStatus() {
 
       activeJobs.forEach(
           job -> {
-            JobHandle.Status newStatus = 
jobExecutor.getJobStatus(job.jobExecutionId());
+            JobHandle.Status newStatus = job.status();
+            try {
+              newStatus = jobExecutor.getJobStatus(job.jobExecutionId());
+            } catch (NoSuchJobException e) {
+              // If the job is not found in the external job executor, we 
assume the job is

Review Comment:
   Because we get the status from the external job executor. If the job is 
deleted from the external job executor, then when we get the job status it will 
be failed to get the job.



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