Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42679

Allow lock retrieval based on requested priority

    • 1246.v28b_e4cc6fa_16

      I'd be interested in seeing a feature where a lock could have an optional priority. If a priority is set, actions requesting resources with a higher priority would get the lock sooner than those with lower priority.

       

      lock('my-resource', priority: 9) { }
      }
      
      lock('my-resource', priority: 5) { }

       

      In this example, I would expect the priority 9 lock to yield before the priority 5 lock, even if priority 5 requested the lock first. This could be used in conjunction with inversePrecedence to order lock yielding within priority buckets.

          [JENKINS-42679] Allow lock retrieval based on requested priority

          Robby Pocase created issue -
          ethorsa made changes -
          Remote Link New: This issue links to "PR #78 - Lock with priority (Web Link)" [ 23062 ]
          Tobias Gruetzmacher made changes -
          Assignee New: Tobias Gruetzmacher [ tgr ]
          Tobias Gruetzmacher made changes -
          Assignee Original: Tobias Gruetzmacher [ tgr ]
          ethorsa made changes -
          Remote Link New: This issue links to "PR #632 - Lockable priority strategy (Web Link)" [ 29608 ]
          ethorsa made changes -
          Released As New: 1246.v28b_e4cc6fa_16
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            rpocase Robby Pocase
            Votes:
            8 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: