From fe4a25dd7f5b14229c524223599da4cea44a574f Mon Sep 17 00:00:00 2001 From: Jason Nance Date: Wed, 2 Dec 2015 10:58:53 -0500 Subject: [PATCH] Allow scheduler to listen on unix socket normally Previously, the scheduler would only listen on a supplied unix socket when run in the background. When run normally, it would ignore the given unix socket and serve on the default port. This is fixed by passing the given unix_socket to server.run when the scheduler is run normally. --- luigi/cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luigi/cmdline.py b/luigi/cmdline.py index 2184c06895..898c70cbcd 100644 --- a/luigi/cmdline.py +++ b/luigi/cmdline.py @@ -41,4 +41,4 @@ def luigid(argv=sys.argv[1:]): filename=os.path.join(opts.logdir, "luigi-server.log")) else: logging.basicConfig(level=logging.INFO, format=luigi.process.get_log_format()) - luigi.server.run(api_port=opts.port, address=opts.address) + luigi.server.run(api_port=opts.port, address=opts.address, unix_socket=opts.unix_socket)