Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ packages =

[extras]
luigi =
luigi>=2.3.3,<3.0.0
luigi>=2.8.5,<3.0.0
examples =
scipy
sklearn
Expand Down
297 changes: 0 additions & 297 deletions spotify_tensorflow/luigi/python_dataflow_task.py

This file was deleted.

12 changes: 10 additions & 2 deletions spotify_tensorflow/luigi/tfx_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@

from abc import abstractmethod

from spotify_tensorflow.luigi.python_dataflow_task import PythonDataflowTask
from luigi.contrib.beam_dataflow import BeamDataflowJobTask


class TFXBaseTask(PythonDataflowTask):
class TFXBaseTask(BeamDataflowJobTask):
python_script = None # type: str

def __init__(self, *args, **kwargs):
super(TFXBaseTask, self).__init__(*args, **kwargs)

def dataflow_executable(self):
""" Must be overwritten from the BeamDataflowTask """
return ["python", self.python_script]

def tfx_args(self):
""" Extra arguments that will be passed to your tfx dataflow job.

Expand All @@ -44,6 +50,8 @@ def _mk_cmd_line(self):


class TFTransformTask(TFXBaseTask):
# Required dataflow arg

def __init__(self, *args, **kwargs):
super(TFTransformTask, self).__init__(*args, **kwargs)

Expand Down
Loading