Skip to content

Commit

Permalink
add guri to importer artifacts
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 647454281
  • Loading branch information
tfx-copybara committed Jun 28, 2024
1 parent 4e71a35 commit 6b28b63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from tfx.utils import status as status_lib



class ImporterTaskScheduler(task_scheduler.TaskScheduler[task_lib.ExecNodeTask]
):
"""A task scheduler for Importer system node."""
Expand All @@ -49,6 +50,7 @@ def schedule(self) -> task_scheduler.TaskSchedulerResult:
output_key=output_key,
)


return task_scheduler.TaskSchedulerResult(
status=status_lib.Status(code=status_lib.Code.OK),
output=task_scheduler.ImporterNodeOutput(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
from tfx.utils import status as status_lib




class ImporterTaskSchedulerTest(test_utils.TfxTest):

def setUp(self):
Expand Down Expand Up @@ -80,6 +82,7 @@ def _make_pipeline(self, pipeline_root, pipeline_run_id):
return pipeline

def test_importer_task_scheduler(self):

with self._mlmd_connection as m:
ts_result = importer_task_scheduler.ImporterTaskScheduler(
mlmd_handle=m, pipeline=self._pipeline,
Expand Down

0 comments on commit 6b28b63

Please sign in to comment.