Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Python luigi transform luigi.run - luigi.build

$
0
0

I would like to transform this statement:

luigi.run(['Task', '--workers', '1', '--local-scheduler','--GlobalParams-date', '2018-01-01'])

to this one:

luigi.build([GlobalParams(date='2018-01-01'), Task()], local_scheduler=True, workers=1)

"GlobalParams" is a luigi.Config class and "Task" is simple luigi.Task class

What am i doing wrong ?


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>