Skip to content

Commit 3aa4ad6

Browse files
author
Matt Delacour
committed
BQ exception should be raised first before we check the timedout
Signed-off-by: Matt Delacour <matt.delacour@shopify.com>
1 parent a5c330e commit 3aa4ad6

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
@@ -286,13 +286,13 @@ def _wait_until_done(job_id):
286286
job_id = bq_job.job_id
287287
_wait_until_done(job_id=job_id)
288288

289+
if bq_job.exception():
290+
raise bq_job.exception()
291+
289292
if not _is_done(job_id):
290293
client.cancel_job(job_id)
291294
raise BigQueryJobCancelled(job_id=job_id)
292295

293-
if bq_job.exception():
294-
raise bq_job.exception()
295-
296296

297297
@dataclass(frozen=True)
298298
class FeatureViewQueryContext:

0 commit comments

Comments
 (0)