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

externalize: Dont register the copied tasks #1975

Merged
merged 1 commit into from
Jan 5, 2017

Commits on Jan 3, 2017

  1. externalize: Dont register the copied tasks

    This fixes an implementation detail, so that luigi.task.externalize
    actually does what it says it does in the documentation.  Hence I
    hope pretty uncontroversial. This makes it so that calling externalize
    don't register a new task. A pretty serious bug.
    
    Now, there's still a caveat, as we're mostly hiding that we do side
    affects, if anyone would actually inherit from what is returned by
    externalize.  That subtask wouldn't be registered either.
    
    This code is quite easy to get wrong somewhere. Luckily luigi is
    decently tested. To make me even more confident I also added a couple of
    tests:
    
     * Two tests in task_test.py that didn't pass before.
     * I created the task_register_test.py file.
     * I added some util tests too, because they are also all about
       Copying classes and namespace clashes. And I want to be on the safe
       side.
    Tarrasch committed Jan 3, 2017
    Configuration menu
    Copy the full SHA
    613d804 View commit details
    Browse the repository at this point in the history