diff --git a/sdk/RELEASE.md b/sdk/RELEASE.md index 4ee8405ce4c1..06a8e5773eed 100644 --- a/sdk/RELEASE.md +++ b/sdk/RELEASE.md @@ -1,6 +1,7 @@ # Current Version (in development) ## Features +* Add support for `executor_output.json` placeholder `dsl.PIPELINE_TASK_EXECUTOR_OUTPUT_PLACEHOLDER` [\#10240](https://github.com/kubeflow/pipelines/pull/10240) ## Breaking changes diff --git a/sdk/python/kfp/dsl/__init__.py b/sdk/python/kfp/dsl/__init__.py index d2372156c7ec..e65f681c454b 100644 --- a/sdk/python/kfp/dsl/__init__.py +++ b/sdk/python/kfp/dsl/__init__.py @@ -133,6 +133,19 @@ def my_pipeline(): value=dsl.PIPELINE_TASK_ID_PLACEHOLDER, ) """ +PIPELINE_TASK_EXECUTOR_OUTPUT_PLACEHOLDER = '{{$.outputs.output_file}}' +"""A placeholder used to obtain the taks container's path to the executor_output.json file. + + Example: + :: + + @dsl.pipeline + def my_pipeline(): + create_artifact_with_metadata( + metadata={'foo': 'bar'}, + executor_output_destination=dsl.PIPELINE_TASK_EXECUTOR_OUTPUT_PLACEHOLDER, + ) +""" PIPELINE_ROOT_PLACEHOLDER = '{{$.pipeline_root}}' """A placeholder used to obtain the pipeline root.