summaryrefslogtreecommitdiff
path: root/zuul
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-08-29 15:23:24 +0000
committerGerrit Code Review <review@openstack.org>2017-08-29 15:23:24 +0000
commit5e75a9b83ea0c6addbe3f3d2c08e9436640f7d08 (patch)
tree6096893d5d5bb834b4cfdec531add8e9b44ec448 /zuul
parent33c7a6f97288d290e218877d1f5f0081f4eadfda (diff)
parenta7586c96a7d95c1d3c943391a990ce5d389976c2 (diff)
downloadzuul-5e75a9b83ea0c6addbe3f3d2c08e9436640f7d08.tar.gz
Merge "Add gearman server port configuration" into feature/zuulv3
Diffstat (limited to 'zuul')
-rwxr-xr-xzuul/cmd/scheduler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/zuul/cmd/scheduler.py b/zuul/cmd/scheduler.py
index b7b12fe31..a9923c622 100755
--- a/zuul/cmd/scheduler.py
+++ b/zuul/cmd/scheduler.py
@@ -100,10 +100,12 @@ class Scheduler(zuul.cmd.ZuulApp):
statsd_host = os.environ.get('STATSD_HOST')
statsd_port = int(os.environ.get('STATSD_PORT', 8125))
host = get_default(self.config, 'gearman_server', 'listen_address')
+ port = int(get_default(self.config, 'gearman_server', 'port',
+ 4730))
ssl_key = get_default(self.config, 'gearman_server', 'ssl_key')
ssl_cert = get_default(self.config, 'gearman_server', 'ssl_cert')
ssl_ca = get_default(self.config, 'gearman_server', 'ssl_ca')
- zuul.lib.gearserver.GearServer(4730,
+ zuul.lib.gearserver.GearServer(port,
ssl_key=ssl_key,
ssl_cert=ssl_cert,
ssl_ca=ssl_ca,