Skip to content

Commit

Permalink
add support for '{{$.outputs.output_file}}' placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-mccarthy committed Nov 15, 2023
1 parent a0b3037 commit ef26e4d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions sdk/RELEASE.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
13 changes: 13 additions & 0 deletions sdk/python/kfp/dsl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ef26e4d

Please sign in to comment.