summaryrefslogtreecommitdiff
path: root/web/src/containers/job
diff options
context:
space:
mode:
authorJames E. Blair <jim@acmegating.com>2021-05-06 16:40:00 -0700
committerJames E. Blair <jim@acmegating.com>2021-05-25 17:52:23 -0700
commit153f8a90ccb88fde55c01a99f17453be46f69ad8 (patch)
tree7012a7e31ba5fe032fdc42971e512bd097d81e64 /web/src/containers/job
parent29ccaa278d539cac4dd93192bd0a3c7088dea187 (diff)
downloadzuul-153f8a90ccb88fde55c01a99f17453be46f69ad8.tar.gz
Support multiple semaphores
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
Diffstat (limited to 'web/src/containers/job')
-rw-r--r--web/src/containers/job/JobVariant.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/containers/job/JobVariant.jsx b/web/src/containers/job/JobVariant.jsx
index 5e33e028d..79b14c87e 100644
--- a/web/src/containers/job/JobVariant.jsx
+++ b/web/src/containers/job/JobVariant.jsx
@@ -84,7 +84,7 @@ class JobVariant extends React.Component {
const jobInfos = [
'description', 'context', 'builds', 'status',
- 'parent', 'attempts', 'timeout', 'semaphore',
+ 'parent', 'attempts', 'timeout', 'semaphores',
'nodeset', 'variables', 'override_checkout',
]
jobInfos.forEach(key => {