Skip to content

Commit 203cb47

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: Fix artifact registry link not showing in ui when creating schedules with SDK.
PiperOrigin-RevId: 547572327
1 parent 1f55b05 commit 203cb47

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

google/cloud/aiplatform/preview/pipelinejobschedule/pipeline_job_schedules.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ def __init__(
107107
"pipeline_spec": pipeline_job.pipeline_spec,
108108
},
109109
}
110+
if "template_uri" in pipeline_job._gca_resource:
111+
create_pipeline_job_request["pipeline_job"][
112+
"template_uri"
113+
] = pipeline_job._gca_resource.template_uri
110114
pipeline_job_schedule_args = {
111115
"display_name": display_name,
112116
"create_pipeline_job_request": create_pipeline_job_request,

tests/unit/aiplatform/test_pipeline_job_schedules.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ def test_call_schedule_service_create_artifact_registry(
658658
"pipeline_spec": dict_to_struct(pipeline_spec),
659659
"service_account": _TEST_SERVICE_ACCOUNT,
660660
"network": _TEST_NETWORK,
661+
"template_uri": _TEST_AR_TEMPLATE_PATH,
661662
},
662663
},
663664
)
@@ -740,6 +741,7 @@ def test_call_schedule_service_create_https(
740741
"pipeline_spec": dict_to_struct(pipeline_spec),
741742
"service_account": _TEST_SERVICE_ACCOUNT,
742743
"network": _TEST_NETWORK,
744+
"template_uri": _TEST_HTTPS_TEMPLATE_PATH,
743745
},
744746
},
745747
)

0 commit comments

Comments
 (0)