Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.67.x] [incubator-kie-issues-645] potential fix for orphans #2382

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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