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


##########
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:
   This is not the normal case, I'm hesitant to add a new `UNKNOWN` state. 
Usually, there should be no `UNKNOWN` state for a job. I'm going to change to 
use `FAILED` instead and add more logs to let users know such a situation.



-- 
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: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to