- Notifications
You must be signed in to change notification settings - Fork1.6k
BigQuery: add 'retry' argument to '_AsyncJob.result'.#6302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
BigQuery: add 'retry' argument to '_AsyncJob.result'.#6302
Uh oh!
There was an error while loading.Please reload this page.
Conversation
tswast left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
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.
tseaver commentedOct 25, 2018
@tswast The |
tseaver commentedOct 25, 2018
I had actually planned to update the |
tseaver commentedOct 25, 2018
tseaver commentedOct 29, 2018
If we close this PR without merging (i.e., we decidenot to add a |
crwilcox commentedOct 29, 2018
tseaver commentedOct 30, 2018
Depends The If we decidenot to expose it, then I think westill need to pass the fromgoogle.cloud.bigqueryimportjob...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 modifythe 'api_core...PollingFuture' class before we can safely pass the'retry' through to its 'result'.
tseaver commentedNov 19, 2018
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.