Skip to content

Commit 9b7dfc9

Browse files
committed
no-op
PiperOrigin-RevId: 627589952
1 parent bb69352 commit 9b7dfc9

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

tfx/orchestration/experimental/core/env.py

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
"""For environment specific extensions."""
1515

1616
import abc
17-
from typing import Optional
17+
from typing import Optional, Sequence
1818

1919
from tfx.orchestration.experimental.core import orchestration_options
2020
from tfx.proto.orchestration import pipeline_pb2
2121
from tfx.utils import status as status_lib
2222

23+
from ml_metadata.proto import metadata_store_pb2
24+
2325
_ENV = None
2426

2527

@@ -85,6 +87,17 @@ def prepare_orchestrator_for_pipeline_run(
8587
pipeline: The pipeline IR to prepare for.
8688
"""
8789

90+
@abc.abstractmethod
91+
def update_pipeline_run_status(
92+
self,
93+
owner: str,
94+
pipeline_name: str,
95+
original_execution: metadata_store_pb2.Execution,
96+
modified_execution: metadata_store_pb2.Execution,
97+
sub_pipeline_ids: Optional[Sequence[str]] = None,
98+
) -> None:
99+
"""Updates orchestrator storage backends with pipeline run status."""
100+
88101

89102
class _DefaultEnv(Env):
90103
"""Default environment."""
@@ -125,6 +138,16 @@ def prepare_orchestrator_for_pipeline_run(
125138
):
126139
pass
127140

141+
def update_pipeline_run_status(
142+
self,
143+
owner: str,
144+
pipeline_name: str,
145+
original_execution: metadata_store_pb2.Execution,
146+
modified_execution: metadata_store_pb2.Execution,
147+
sub_pipeline_ids: Optional[Sequence[str]] = None,
148+
) -> None:
149+
pass
150+
128151

129152
_ENV = _DefaultEnv()
130153

tfx/orchestration/experimental/core/env_test.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@
1313
# limitations under the License.
1414
"""Tests for tfx.orchestration.experimental.core.env."""
1515

16+
from typing import Optional, Sequence
17+
1618
import tensorflow as tf
1719
from tfx.orchestration.experimental.core import env
1820
from tfx.orchestration.experimental.core import test_utils
1921
from tfx.proto.orchestration import pipeline_pb2
2022
from tfx.utils import status as status_lib
2123

24+
from ml_metadata.proto import metadata_store_pb2
25+
2226

2327
class _TestEnv(env.Env):
2428

@@ -51,6 +55,16 @@ def prepare_orchestrator_for_pipeline_run(
5155
):
5256
raise NotImplementedError()
5357

58+
def update_pipeline_run_status(
59+
self,
60+
owner: str,
61+
pipeline_name: str,
62+
original_execution: metadata_store_pb2.Execution,
63+
modified_execution: metadata_store_pb2.Execution,
64+
sub_pipeline_ids: Optional[Sequence[str]] = None,
65+
) -> None:
66+
raise NotImplementedError()
67+
5468

5569
class EnvTest(test_utils.TfxTest):
5670

0 commit comments

Comments
 (0)