Skip to content

Commit

Permalink
When a task cacel fails, the exception should be explicitly thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Oct 10, 2024
1 parent be25a1f commit b195bd7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public void cancel() throws JobException {
executeCancelLogic();
} catch (Exception e) {
log.warn("cancel task failed, job id is {}, task id is {}", jobId, taskId, e);
throw new JobException(e);
} finally {
closeOrReleaseResources();
}
Expand Down

0 comments on commit b195bd7

Please sign in to comment.