【发布时间】:2015-07-21 08:29:30
【问题描述】:
我正在通过
触发 Luigiluigi.run(["--local-scheduler"], main_task_cls=Test(Server = ActiveServer, Database = DB))
在我的课堂上我有:
class Test(luigi.Task):
Database = luigi.Parameter()
Server = luigi.Parameter()
但任务测试似乎无法解析我正确输入的参数?
我得到:
MissingParameterException: No value for 'Server' (--Server) submitted and no default value has been assigned.
【问题讨论】:
-
@Samuel-Lampa 回答你的问题了吗?
-
如果有人遇到从 python 运行时运行 luigi,它是
luigi.build([Test('db','svr')], local_scheduler=True)参见 https://stackoverflow.com/questions/41876861/how-to-use-parameters-in-python-luigi