Ejemplo n.º 1
0
 def requires(self):
     return [
         S3PathTask(create_full_path(self.input_base_path,
                                     'purchases.json')),
         S3PathTask(create_full_path(self.input_base_path,
                                     'wishlists.json'))
     ]
    def requires(self):
        """
        The requires method is how you build your dependency graph in Luigi.  Luigi will not
        run this task until all tasks returning in this list are complete.

        S3PathTask is a simple Luigi task that ensures some path already exists. As
        GenerateSignals is the first task in this Luigi pipeline it only requires that its
        expected input data can be found.
        """
        return [
            S3PathTask(create_full_path(self.input_base_path,
                                        'purchases.json')),
            S3PathTask(create_full_path(self.input_base_path,
                                        'wishlists.json'))
        ]
 def requires(self):
     """
     Dependency of this Task -- in this case Luigi uses 
     S3PathTask to check for the existence of input data
     at a certain S3 path before running this Task.
     """
     return [S3PathTask('s3://mortar-example-data/ngrams/books/20120701/eng-all/1gram/googlebooks-eng-all-1gram-20120701-q.gz')]
Ejemplo n.º 4
0
    def requires(self):
        """
        The requires method is how you build your dependency graph in Luigi.  Luigi will not
        run this task until all tasks returning in this list are complete.

        S3PathTask is a simple Luigi task that ensures some path already exists. As
        GenerateSignals is the first task in this Luigi pipeline it only requires that its
        expected input data can be found.
        """
        return [S3PathTask(LAST_FM_INPUT_SIGNALS_PATH)]
Ejemplo n.º 5
0
    def requires(self):
        """
      The requires method is how you build your dependency graph in Luigi.  Luigi will not
      run this task until all tasks returning in this list are complete.

      S3PathTask is a simple Luigi task that ensures some path already exists. As
      GenerateUserSignals is the first task in this Luigi pipeline it only requires that its
      expected input data can be found.
      """
        if self.run_locally:
            return [LocalInputFile(self.books_file())]
        else:
            return [S3PathTask(self.books_file())]
Ejemplo n.º 6
0
 def requires(self):
     return [
         S3PathTask(create_full_path(self.input_base_path, 'raw_events'))
     ]
Ejemplo n.º 7
0
 def requires(self):
     return (S3PathTask(path=self.sample['FastQ 1']),
             S3PathTask(path=self.sample['FastQ 2']))
Ejemplo n.º 8
0
 def requires(self):
     return S3PathTask(path=self.s3_load_path)