Skip to content

Instantly share code, notes, and snippets.

@samuell
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save samuell/ce60b55025685a64e080 to your computer and use it in GitHub Desktop.

Select an option

Save samuell/ce60b55025685a64e080 to your computer and use it in GitHub Desktop.
class TaskA(luigi.Task):
param1 = luigi.Parameter()
pass # We leave out the details for now
class TaskB(luigi.Task):
param1 = luigi.Parameter()
# Add a "hard-wired" depenency on TaskA
def requires(self):
return TaskA(param1=self.param1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment