BigQuery: add 'retry' argument to '_AsyncJob.result'.#6302
BigQuery: add 'retry' argument to '_AsyncJob.result'.#6302tseaver merged 1 commit intogoogleapis:masterfrom tseaver:bigquery-job_result_retry_part_one
Conversation
tswast
left a comment
There was a problem hiding this comment.
LGTM, though I'll want to hear what Chris or Thea thinks since this is a divergence from the standard "futures" interface. Maybe we should store a private Retry object on the Job class instead? We already override done() for some of the job types.
|
@tswast The |
|
I had actually planned to update the |
|
If we close this PR without merging (i.e., we decide not to add a |
Depends The If we decide not to expose it, then I think we still need to pass the from google.cloud.bigquery import job
...
copy_job = job.CopyJob(
job_ref, sources, destination, client=client, job_config=job_config)
copy_job._retry = copy_job._retry.with_deadline(600)
result = copy_job.result() |
Pass it through to the '_begin' call. Note that we need to modify the 'api_core...PollingFuture' class before we can safely pass the 'retry' through to its 'result'.
|
Rebased to work around borked CI runs for irrelevant APIs. |
Pass it through to the
_begincall. Note that we need to modifythe
api_core...PollingFutureclass before we can safely pass theretrythrough to itsresult.