Created
August 5, 2014 12:33
-
-
Save samuell/a26ed88a7b9a932b1736 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Note: SomeOtherUpstreamTask - which is a different task than TaskA | |
| class SomeOtherUpstreamTask(luigi.Task): | |
| param1 = luigi.Parameter() | |
| pass # We leave out the details for now | |
| # Here we sub-class the original TaskB and overrides its requires method: | |
| class MyOwnTaskB(TaskB): | |
| param1 = luigi.Parameter() | |
| # Override the requires method: | |
| def requires(self): | |
| return SomeOtherUpstreamTask(param1=self.param1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment