Take the directory examplesin the repository luigi( git clone ...and you have a directory luigi). There you can find several different examples, among which are:
hello_world.pycontains things like task_namespace = 'examples'(the same as the python module examplesin the repository where all these python files are stored):- this can be done using a command
luigi(no need to have a daemon luigid) from outside the python module exampleslike:cd luigi && PYTHONPATH=. luigi --module examples.hello_world examples.HelloWorldTask --local-scheduler
top_artists.py , task_namespace:- python
examples: cd luigi/examples && PYTHONPATH='.' luigi --module top_artists AggregateArtists --local-scheduler --date-interval 2012-06
miniconda ( anaconda) cygwin, , , cygwin strong > (, powershell cmd &&, ).
/, hello_world.py cd luigi/examples && PYTHONPATH=. luigi --module hello_world HelloWorldTask --local-scheduler ( , luigi examples. ), :
raise TaskClassNotFoundException(cls._missing_task_msg(name))
luigi.task_register.TaskClassNotFoundException: No task HelloWorldTask. Candidates are: Config,ExternalTask,RangeBase,RangeByMinutes,RangeByMinutesBase,RangeDaily,RangeDailyBase,RangeHourly,RangeHourlyBase,Task,TestNotificationsTask,WrapperTask,batch_email,core,email,examples.HelloWorldTask,execution_summary,retcode,scheduler,sendgrid,smtp,worker
, , cygwin : luigid &. . , PID , cygwin, ps aux | grep luigid. , , cygwin (- bash ).