jenkinsci / lockable-resources-plugin

Lock resources against concurrent use
https://plugins.jenkins.io/lockable-resources
MIT License
87 stars 185 forks source link

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

Open mPokornyETM opened 10 months ago

mPokornyETM commented 10 months ago

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

mPokornyETM commented 10 months ago

as follow up from #558