Skip to content

Commit

Permalink
[incubator-kie-issues-597-orphans] potential fix for orphans
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed Oct 20, 2023
1 parent d0e6241 commit 6d24a33
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ public boolean removeJob(JobHandle jobHandle) {
return unregisterJobHandle(jobHandle);
} else {
logger.debug("No match for job handle {} within handles of session {}", jobHandle, sessionId);
return false;
// even if we don't have this we need to trigger the deletion as we could be in cluster env and not
// having the info in here
return unregisterJobHandle(jobHandle);
}

}

private GlobalJobHandle registerJobHandle (Job job, JobContext ctx, Trigger trigger) {
Expand Down

0 comments on commit 6d24a33

Please sign in to comment.