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-blue] [incubator-kie-issues-645] potential fix for orphans #2381

Merged
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