Skip to content

Commit

Permalink
No-op.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 662276644
  • Loading branch information
tfx-copybara committed Aug 13, 2024
1 parent ffb176a commit 484fe6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tfx/orchestration/experimental/core/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def get_status_code_from_exception(
def maximum_active_task_schedulers(self) -> int:
"""Returns the maximum number of active task schedulers."""

@abc.abstractmethod
def get_pipeline_service_address(self) -> Optional[str]:
"""Returns the Tflex pipeline service address."""


class _DefaultEnv(Env):
"""Default environment."""
Expand Down Expand Up @@ -251,6 +255,9 @@ def get_status_code_from_exception(
def maximum_active_task_schedulers(self) -> int:
return 1

def get_pipeline_service_address(self) -> Optional[str]:
return None


_ENV = _DefaultEnv()

Expand Down
3 changes: 3 additions & 0 deletions tfx/orchestration/experimental/core/env_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def should_orchestrate(self, pipeline: pipeline_pb2.Pipeline) -> bool:
def maximum_active_task_schedulers(self) -> int:
raise NotImplementedError()

def get_pipeline_service_address(self) -> Optional[str]:
raise NotImplementedError()


class EnvTest(test_utils.TfxTest):

Expand Down

0 comments on commit 484fe6e

Please sign in to comment.