jenkinsci / jenkinsci/lockable-resources-plugin

Unqueue all items contains the build, when the build has been canceled / killed (to improve performance)

Open
#614 1 comment 0 reactions 0 assignees View on GitHub
Triage
Dominant language
Java
Stars
99
Forks
205
Avg merge
2d 13h
Merged PRs (30d)
8

Description

### Jenkins and plugins versions report

NN

### What Operating System are you using (both controller, and any agents involved in the problem)?

NN

### Reproduction steps

reserve resource A
start this script

def stages = [:];
stages['A'] = {
lock('A') { sleep 600 }
}
stages['B'] = {
lock('A') { sleep 600 }
}
stages['B'] = {
lock('A') { sleep 600 }
}

parallel stages

and then kill / cancel the job

### Expected Results

The queu is empty

### Actual Results

Currently it might happens, that the lock is in queue after hard kill / or cancel

### Anything else?

_No response_

### Are you interested in contributing a fix?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.