Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for naming tasks in @requires #3077

Merged
merged 3 commits into from
Aug 28, 2021

Commits on Apr 22, 2021

  1. 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"]
    IanCal committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    609cc64 View commit details
    Browse the repository at this point in the history
  2. util_test flake8 fixes

    IanCal committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    13f8317 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2021

  1. Configuration menu
    Copy the full SHA
    aa0baba View commit details
    Browse the repository at this point in the history