nginxtornadonginx-reverse-proxyluigi

How to run a Luigi server against a custom URI


Can the Luigi server be run against http://localhost:8082/someString ?

Here is just one keyword convenient way to do the same in Dash. I was hoping to see a similar way in Luigi.


Solution

  • So I figured a way around on my own. First of all, there does not seem to be an external way of doing that. Only way I could do it is by modifying a this line in luigi/server.py:

    299     handlers = [
    300         (r'/api/(.*)', RPCHandler, {"scheduler": scheduler}),
    301         (r'/someString', RootPathHandler, {'scheduler': scheduler}),
    

    Then, curl -L http://localhost:8082/someString works fine.