Skip to content

Commit 651bce3

Browse files
MattDelacMwad22
authored andcommitted
BQ exception should be raised first before we check the timedout (#1675)
Signed-off-by: Matt Delacour <matt.delacour@shopify.com> Signed-off-by: Mwad22 <51929507+Mwad22@users.noreply.github.com>
1 parent d36d1a0 commit 651bce3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎sdk/python/feast/infra/offline_stores/bigquery.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,13 @@ def _wait_until_done(job_id):
288288
job_id = bq_job.job_id
289289
_wait_until_done(job_id=job_id)
290290

291+
if bq_job.exception():
292+
raise bq_job.exception()
293+
291294
if not _is_done(job_id):
292295
client.cancel_job(job_id)
293296
raise BigQueryJobCancelled(job_id=job_id)
294297

295-
if bq_job.exception():
296-
raise bq_job.exception()
297-
298298

299299
@dataclass(frozen=True)
300300
class FeatureViewQueryContext:

0 commit comments

Comments
 (0)