3
我有我通過在python路易吉使用參數
luigi.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](https://stackoverflow.com/questions/41876861/how-to-use-parameters-in-python-luigi) – citynorman