feat(sdk): Support PIPELINE_ROOT_PLACEHOLDER (#9134)

* Support PIPELINE_ROOT_PLACEHOLDER

/assign @connor-mccarthy

* Update __init__.py
This commit is contained in:
IronPan 2023-04-11 08:56:49 -07:00 committed by GitHub
parent a6ef77b784
commit 5e98b3b6f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -36,6 +36,7 @@ __all__ = [
'PIPELINE_JOB_ID_PLACEHOLDER',
'PIPELINE_TASK_NAME_PLACEHOLDER',
'PIPELINE_TASK_ID_PLACEHOLDER',
'PIPELINE_ROOT_PLACEHOLDER',
'Artifact',
'ClassificationMetrics',
'Dataset',
@ -151,6 +152,20 @@ PIPELINE_TASK_ID_PLACEHOLDER = '{{$.pipeline_task_uuid}}'
value=dsl.PIPELINE_TASK_ID_PLACEHOLDER,
)
"""
PIPELINE_ROOT_PLACEHOLDER = '{{$.pipeline_root}}'
"""A placeholder used to obtain the pipeline root.
Example:
::
@dsl.pipeline
def my_pipeline():
store_model(
tmp_dir=dsl.PIPELINE_ROOT_PLACEHOLDER+'/tmp',
)
"""
PIPELINE_JOB_CREATE_TIME_UTC_PLACEHOLDER = '{{$.pipeline_job_create_time_utc}}'
"""A placeholder used to obtain the time that a pipeline job was created.