jenkinsci / jenkinsci/lockable-resources-plugin

Add timemout attribute to eliminate long stuck when resource is long time locked / reserved

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

Description

### What feature do you want to see added?

We have some jobst, that try to repair some nodes ... to eliminate possible multiple actions on the same node, we lock the nodes via LRM

When we try to check the node, need to wait until all other jobs are done. Thats fine, but when the jobs takes too long, and you start this chrono task again, it will increase the queue unnecessarry. Therefor it will be fine, to skipp locking, when it takes too long

something like

```
// lock node1 and wait max 1 hour
lock(resource : 'node1', timeout : 3600) { echo 'I am locked now') }
```

### Upstream changes

_No response_

### Are you interested in contributing this feature?

_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.