-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Labels
Milestone
Description
What feature do you want to see added?
Problem Description
When using lockable resources in Jenkins pipelines with a timeout set, there is a potential issue with pipelines timing out due to the queue wait time. Specifically:
- There is a single lockable resource, e.g.,
LOCK_0. - Two pipelines,
PIPELINE_AandPIPELINE_B, are competing to acquireLOCK_0. - Both pipelines have a timeout set to 12 hours.
PIPELINE_AacquiresLOCK_0and runs for 10 hours.- After
PIPELINE_Afinishes,PIPELINE_Bstarts, but it has been waiting in the queue for 10 hours. PIPELINE_Bneeds more than 2 hours to complete, which exceeds the remaining timeout.
The issue here is that PIPELINE_B times out due to the queue wait time, even though its actual execution time would have been within the timeout period.
Proposed Solutions
- Is there a way to exclude the queue wait time from the timeout calculation?
- Are there any existing workarounds to handle this scenario?
- If not, could this be considered as a feature request?
Thanks!
Upstream changes
No response
Are you interested in contributing this feature?
No response