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
…2382)

Co-authored-by: Enrique <enrique.gonzalez.martinez1@ibm.com>
  • Loading branch information
github-actions[bot] and elguardian authored Jan 18, 2024
1 parent 6d4f8bc commit 419a36b
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 419a36b

Please sign in to comment.