jenkinsci / jenkinsci/lockable-resources-plugin

Lock resource requests should not be able to skip the line when different label quantities are used

Open
#224 2 comments 0 reactions 0 assignees View on GitHub
duplicate lock queue priority and visibility Triage
Dominant language
Java
Stars
99
Forks
205
Avg merge
2d 13h
Merged PRs (30d)
8

Description

Hi,

I would like to utilize the label with the quantity feature like this:
- Light jobs allocate 1 resource by label.
- Heavy jobs allocate all resources of that label.

My expectation is that the order of lock requests behave like a queue:
so when a heavy job requests all resources of that label no other light job will be able to lock such a resource in the meantime, basically no other job should be able to skip the line.

The current implementation feels like a bug to me, as when there are all the time light jobs running, the heavy job will never be able to allocate all the resources by label and as such never be able to go on.

I also played around inversePrecedence, but it did not help with my requirement.

Do I miss something here?

Thanks,
Maik

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.