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

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

              Created:
              Updated:
              Resolved: