Skip to content

Commit

Permalink
no-op
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 629150061
  • Loading branch information
XinranTang authored and tfx-copybara committed May 2, 2024
1 parent 472f30b commit 4f58b75
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tfx/orchestration/experimental/core/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ def get_orchestration_options(
def get_base_dir(self) -> Optional[str]:
"""Returns the base directory for the pipeline."""

@abc.abstractmethod
def label_and_tag_pipeline_run(
self, mlmd_handle, pipeline_id, pipeline_run_id, labels, tags
) -> None:
"""Labels and tags the pipeline run after it starts."""

@abc.abstractmethod
def max_mlmd_str_value_length(self) -> Optional[int]:
"""Returns max size of a string value in MLMD db, `None` if unlimited."""
Expand Down Expand Up @@ -111,6 +117,11 @@ def get_orchestration_options(
def get_base_dir(self) -> Optional[str]:
return None

def label_and_tag_pipeline_run(
self, mlmd_handle, pipeline_id, pipeline_run_id, labels, tags
) -> None:
return None

def max_mlmd_str_value_length(self) -> Optional[int]:
return None

Expand Down
5 changes: 5 additions & 0 deletions tfx/orchestration/experimental/core/env_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ def get_orchestration_options(self, pipeline):
def get_base_dir(self):
raise NotImplementedError()

def label_and_tag_pipeline_run(
self, mlmd_handle, pipeline_id, pipeline_run_id, labels, tags
):
raise NotImplementedError()

def max_mlmd_str_value_length(self):
raise NotImplementedError()

Expand Down

0 comments on commit 4f58b75

Please sign in to comment.