Skip to content

Commit 750f3f8

Browse files
authored
feat: expose job validate api (#33653)
1 parent 6aa171f commit 750f3f8

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

sdk/ml/azure-ai-ml/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Release History
22

3+
## 1.14.0 (unreleased)
4+
5+
### Features Added
6+
- Remove `experimental` tag for `ml_client.jobs.validate`.
7+
8+
### Bugs Fixed
9+
10+
### Breaking Changes
11+
12+
### Other Changes
13+
314
## 1.13.0 (unreleased)
415

516
### Features Added

sdk/ml/azure-ai-ml/azure/ai/ml/operations/_job_operations.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@
2828
from azure.ai.ml._restclient.runhistory import AzureMachineLearningWorkspaces as ServiceClientRunHistory
2929
from azure.ai.ml._restclient.runhistory.models import Run
3030
from azure.ai.ml._restclient.v2023_04_01_preview import AzureMachineLearningWorkspaces as ServiceClient022023Preview
31-
from azure.ai.ml._restclient.v2023_04_01_preview.models import JobBase
32-
from azure.ai.ml._restclient.v2023_08_01_preview.models import JobType as RestJobType
33-
from azure.ai.ml._restclient.v2023_04_01_preview.models import ListViewType, UserIdentity
31+
from azure.ai.ml._restclient.v2023_04_01_preview.models import JobBase, ListViewType, UserIdentity
3432
from azure.ai.ml._restclient.v2023_08_01_preview.models import JobBase as JobBase_2308
33+
from azure.ai.ml._restclient.v2023_08_01_preview.models import JobType as RestJobType
3534
from azure.ai.ml._scope_dependent_operations import (
3635
OperationConfig,
3736
OperationsContainer,
@@ -97,7 +96,6 @@
9796
from azure.core.polling import LROPoller
9897
from azure.core.tracing.decorator import distributed_trace
9998

100-
from .._utils._experimental import experimental
10199
from ..constants._component import ComponentSource
102100
from ..entities._builders.control_flow_node import ControlFlowNode
103101
from ..entities._job.pipeline._io import InputOutputBase, PipelineInput, _GroupAttrDict
@@ -469,7 +467,6 @@ def _try_get_compute_arm_id(self, compute: Union[Compute, str]):
469467
return None
470468

471469
@distributed_trace
472-
@experimental
473470
@monitor_with_telemetry_mixin(logger, "Job.Validate", ActivityType.PUBLICAPI)
474471
def validate(self, job: Job, *, raise_on_failure: bool = False, **kwargs) -> ValidationResult:
475472
"""Validates a Job object before submitting to the service. Anonymous assets may be created if there are inline

0 commit comments

Comments
 (0)