|
This allows jobs to request multiple semaphores. Zuul will wait until
all are available before acquiring them* and will not start a job unless
all have been acquired.
This is useful for jobs which require access to mulitple limited resources
(especially if other jobs require access to a subset or superset of those
same resources).
* Implementation note: for efficiency, we actually do acquire them
one-by-one but then release any which have been acquired if they are
not all available. This all happens very quickly within a single
attempt to start a job. We don't hold semaphores while we wait for
others as that could cause deadlocks.
To be consistent with other job attributes which accept lists, this
deprecates job.semaphore and replaces it with job.semaphores.
Change-Id: I295a891a2d02b904820d8f60afe8ef862693b75d
|