Skip to content

Commit c350ba7

Browse files
committed
Updated pr.
1 parent 76fe565 commit c350ba7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ads/opctl/backend/ads_dataflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def watch(self):
189189
Watch DataFlow Run from OCID.
190190
"""
191191
run_id = self.config["execution"]["run_id"]
192-
interval = self.config["execution"]["interval"]
192+
interval = self.config["execution"].get("interval")
193193
with AuthContext(auth=self.auth_type, profile=self.profile):
194194
run = DataFlowRun.from_ocid(run_id)
195195
run.watch(interval=interval)

ads/opctl/backend/ads_ml_job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ def watch(self):
227227
Watch Job Run from OCID.
228228
"""
229229
run_id = self.config["execution"]["run_id"]
230-
interval = self.config["execution"]["interval"]
231-
wait = self.config["execution"]["wait"]
230+
interval = self.config["execution"].get("interval")
231+
wait = self.config["execution"].get("wait")
232232
with AuthContext(auth=self.auth_type, profile=self.profile):
233233
run = DataScienceJobRun.from_ocid(run_id)
234234
run.watch(interval=interval, wait=wait)

ads/opctl/backend/ads_ml_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def watch(self) -> None:
9090
Watch Pipeline Run from OCID.
9191
"""
9292
run_id = self.config["execution"]["run_id"]
93-
log_type = self.config["execution"]["log_type"]
94-
interval = self.config["execution"]["interval"]
93+
log_type = self.config["execution"].get("log_type")
94+
interval = self.config["execution"].get("interval")
9595
with AuthContext(auth=self.auth_type, profile=self.profile):
9696
PipelineRun.from_ocid(run_id).watch(
9797
interval=interval,

0 commit comments

Comments
 (0)