File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
ads/jobs/builders/infrastructure Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1481,13 +1481,20 @@ def init(self) -> DataScienceJob:
1481
1481
DataScienceJob
1482
1482
The DataScienceJob instance (self)
1483
1483
"""
1484
- return (
1484
+ (
1485
1485
self .build ()
1486
1486
.with_compartment_id (self .compartment_id or "{Provide a compartment OCID}" )
1487
1487
.with_project_id (self .project_id or "{Provide a project OCID}" )
1488
- .with_subnet_id (self .subnet_id or "{Provide a subnet OCID}" )
1489
1488
)
1490
1489
1490
+ if self .job_infrastructure_type != "ME_STANDALONE" :
1491
+ self .with_subnet_id (self .subnet_id or "{Provide a subnet OCID}" )
1492
+ self .with_job_infrastructure_type (
1493
+ self .job_infrastructure_type or "STANDALONE"
1494
+ )
1495
+
1496
+ return self
1497
+
1491
1498
def create (self , runtime , ** kwargs ) -> DataScienceJob :
1492
1499
"""Creates a job with runtime.
1493
1500
You can’t perform that action at this time.
0 commit comments