如何解决如何针对自定义URI运行Luigi服务器
Luigi服务器可以针对http:// localhost:8082 / someString运行吗?
Here只是在Dash中执行相同操作的一种便捷的关键字方法。我希望在路易吉州看到类似的方式。
解决方法
所以我自己想了个办法。首先,似乎没有外部的方式可以做到这一点。我唯一能做到的方法是修改luigi/server.py
中的this行:
299 handlers = [
300 (r'/api/(.*)',RPCHandler,{"scheduler": scheduler}),301 (r'/someString',RootPathHandler,{'scheduler': scheduler}),
然后,curl -L http://localhost:8082/someString
正常工作。
我不认为您可以使用luigi开箱即用,因为that's how the server gets started,而且没有更改URI路径的选项
您也许可以添加代理以实现此目的,但是您必须
开始工作时设置--default-scheduler-url=http://localhost:8082/someString
。 See the doc for the configuration