Skip to content

Commit

Permalink
feat(components)!: Deprecate preview.custom_job module
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Sun <[email protected]>
PiperOrigin-RevId: 690809087
  • Loading branch information
chensun authored and Google Cloud Pipeline Components maintainers committed Oct 29, 2024
1 parent c84241b commit 9670811
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/google-cloud/RELEASE.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9670811

Please sign in to comment.