diff --git a/components/google-cloud/RELEASE.md b/components/google-cloud/RELEASE.md index 3e1c72cb3e1..3cc17345d65 100644 --- a/components/google-cloud/RELEASE.md +++ b/components/google-cloud/RELEASE.md @@ -1,6 +1,7 @@ ## Upcoming release * Remove default prediction column names in `v1.model_evaluation.regression_component` component to fix pipeline errors when using bigquery data source. * Add reservation_affinition support in `v1.create_custom_training_job_from_component`. +* Deprecate `preview.custom_job` module. ## Release 2.17.0 * Fix Gemini batch prediction support to `v1.model_evaluation.autosxs_pipeline` after output schema change. diff --git a/components/google-cloud/google_cloud_pipeline_components/preview/custom_job/__init__.py b/components/google-cloud/google_cloud_pipeline_components/preview/custom_job/__init__.py index ac8c9aeb782..83e29bf53af 100644 --- a/components/google-cloud/google_cloud_pipeline_components/preview/custom_job/__init__.py +++ b/components/google-cloud/google_cloud_pipeline_components/preview/custom_job/__init__.py @@ -17,6 +17,15 @@ customized worker and cloud configurations. """ # fmt: on +import warnings + +warnings.warn( + ( + '`preview.custom_job` is deprecated and will be removed in a future ' + 'version. Please use `v1.custom_job` instead.' + ), + category=DeprecationWarning, +) from google_cloud_pipeline_components.preview.custom_job.component import custom_training_job as CustomTrainingJobOp from google_cloud_pipeline_components.preview.custom_job.utils import create_custom_training_job_from_component