
In the last article we saw some small example of a Luigi pipeline, in this article I want to explore how make the different Tasks to comunicate and pass information thus LocalTarget between them.
We already saw that we can use parameters to pass info from a Task to the next, and other nice way is to use the methods: input()
and output()
.
The use of self.input()
Let’s see an example:

The value for self.input()
comes from the result of the method output()
inside the Task called by requires()
in this case it would be the method MakeDirectory()
.