-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add support for naming tasks in @requires When using @requires the requires method is auto-generated. However, as it just takes a list the tasks run method needs to identify which input is which. This adds support for named requirements using luigis existing support for returning a dictionary from the requires function. Usage: class Parent1(luigi.Task): ... class Parent2(luigi.Task): ... @requires(first_parent=Parent1, second_parent=Parent2) class Child(luigi.Task): def run(self): first_parent_target = self.input()["first_parent"] second_parent_target = self.input()["second_parent"] * util_test flake8 fixes
- Loading branch information
Showing
2 changed files
with
60 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters