Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 8e20cb0

Browse files
committed
disambiguate job not found from dataset/table not found
1 parent cbb2f03 commit 8e20cb0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

google/cloud/bigquery/_job_helpers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ def do_query_predicate(exc) -> bool:
181181
# job_retry because that happens for errors like "this table does not
182182
# exist", which probably won't resolve with a retry.
183183
if isinstance(exc, core_exceptions.NotFound):
184-
return True
184+
message = exc.message
185+
# Don't try to retry table/dataset not found, just job not found.
186+
# The URL contains jobs, so use whitespace to disambiguate.
187+
return message is not None and " job" in message.lower()
185188

186189
# Reference the original job_retry to avoid recursion.
187190
return job_retry._predicate(exc)

0 commit comments

Comments
 (0)