Skip to content

Commit

Permalink
feat(sdk): remove local execution feature flag #localexecution (#10355)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-mccarthy authored Jan 5, 2024
1 parent 5399585 commit 8a5a17e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
1 change: 1 addition & 0 deletions sdk/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Features
* Add support for `dsl.PIPELINE_TASK_EXECUTOR_OUTPUT_PATH_PLACEHOLDER` and `dsl.PIPELINE_TASK_EXECUTOR_INPUT_PLACEHOLDER` [\#10240](https://github.com/kubeflow/pipelines/pull/10240)
* Add support for local component execution using `local.init()`, `DockerRunner`, and `SubprocessRunner`

## Breaking changes

Expand Down
6 changes: 0 additions & 6 deletions sdk/python/kfp/dsl/pipeline_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
from kfp.dsl.types import type_utils
from kfp.pipeline_spec import pipeline_spec_pb2

TEMPORARILY_BLOCK_LOCAL_EXECUTION = True

_register_task_handler = lambda task: utils.maybe_rename_for_k8s(
task.component_spec.name)

Expand Down Expand Up @@ -195,10 +193,6 @@ def _execute_locally(self, args: Dict[str, Any]) -> None:
raise NotImplementedError(
'Local pipeline execution is not currently supported.')

# TODO: remove feature flag
if TEMPORARILY_BLOCK_LOCAL_EXECUTION:
return

self._outputs = task_dispatcher.run_single_component(
pipeline_spec=self.component_spec.to_pipeline_spec(),
arguments=args,
Expand Down
11 changes: 5 additions & 6 deletions sdk/python/kfp/local/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
from kfp.local.config import init
from kfp.local.config import SubprocessRunner

# TODO: uncomment when local execution is publicly available
# __all__ = [
# 'init',
# 'SubprocessRunner',
# 'DockerRunner',
# ]
__all__ = [
'init',
'SubprocessRunner',
'DockerRunner',
]
4 changes: 0 additions & 4 deletions sdk/python/kfp/local/testing_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,12 @@ def tearDown(self):
@classmethod
def setUpClass(cls):
# ENTER: use local KFP package path for subprocess runner
from kfp.dsl import pipeline_task
pipeline_task.TEMPORARILY_BLOCK_LOCAL_EXECUTION = False
cls.original_component, dsl.component = dsl.component, functools.partial(
dsl.component, kfp_package_path=_LOCAL_KFP_PACKAGE_PATH)

@classmethod
def tearDownClass(cls):
# EXIT: use local KFP package path for subprocess runner
from kfp.dsl import pipeline_task
pipeline_task.TEMPORARILY_BLOCK_LOCAL_EXECUTION = True
dsl.component = cls.original_component


Expand Down

0 comments on commit 8a5a17e

Please sign in to comment.