Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit c757614

Browse files
authored
Continue if state is RUNNING or PENDING in iter_job_results(), fixes #162 (#163)
1 parent 5ccab6e commit c757614

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pan_cortex_data_lake/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ def iter_job_results(
246246
yield r
247247
break
248248
elif r_json["state"] in ("RUNNING", "PENDING"):
249-
yield r
250249
time.sleep(1)
250+
continue
251251
elif r_json["state"] == "FAILED":
252252
yield r
253253
break

0 commit comments

Comments
 (0)