Skip to content

Commit

Permalink
[incubator-kie-issues-597-orphans] potential fix for orphans (#2348)
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed Jan 11, 2024
1 parent f6a3692 commit b3f8fec
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,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 b3f8fec

Please sign in to comment.