luigi.task_register module¶
Define the centralized register of all Task
classes.
-
class
luigi.task_register.
Register
[source]¶ Bases:
abc.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.
-
task_family
¶ Internal note: This function will be deleted soon.
- Cache instances of objects so that eg.