luigi.task_register
Define the centralized register of all Task classes.
Functions
|
Imports task dynamically given a module and a task name. |
Classes
|
The Metaclass of |
Exceptions
- class luigi.task_register.Register(classname, bases, classdict, **kwargs)[source]
The Metaclass of
Task.Acts as a global registry of Tasks with the following properties:
Cache instances of objects so that eg.
X(1, 2, 3)always returns the same object.Keep track of all subclasses of
Taskand expose them.
Custom class creation for namespacing.
Also register all subclasses.
When the set or inherited namespace evaluates to
None, set the task namespace to whatever the currently declared namespace is.- AMBIGUOUS_CLASS = <object object>
If this value is returned by
_get_reg()then there is an ambiguous task name (twoTaskhave the same name). This denotes an error.
- property task_family
Internal note: This function will be deleted soon.