luigi.task_register module¶
Define the centralized register of all Task
classes.
- exception luigi.task_register.TaskClassNotFoundException[source]¶
Bases:
TaskClassException
- exception luigi.task_register.TaskClassAmbigiousException[source]¶
Bases:
TaskClassException
- class luigi.task_register.Register(classname, bases, classdict, **kwargs)[source]¶
Bases:
ABCMeta
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
Task
and 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 (twoTask
have the same name). This denotes an error.
- property task_family¶
Internal note: This function will be deleted soon.