jerryshao commented on code in PR #10814:
URL: https://github.com/apache/gravitino/pull/10814#discussion_r3123164471
##########
core/src/main/java/org/apache/gravitino/job/JobManager.java:
##########
@@ -464,6 +464,31 @@ public JobEntity runJob(String metalake, String
jobTemplateName, Map<String, Str
try {
entityStore.put(jobEntity, false /* overwrite */);
} catch (IOException e) {
+ // Attempt to cancel the submitted job to avoid orphaned executions
+ try {
+ jobExecutor.cancelJob(jobExecutionId);
Review Comment:
There will be an issue to cancel an untracked job here. JobManager will fail
to find the job and update the status.
--
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]