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


##########
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 don't have better options, unless we add a new unknown state.



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