Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
tseaver merged 1 commit intogoogleapis:masterfromtseaver:bigquery-job_result_retry_part_one
Dec 1, 2018
Merged

BigQuery: add 'retry' argument to '_AsyncJob.result'.#6302

tseaver merged 1 commit intogoogleapis:masterfromtseaver:bigquery-job_result_retry_part_one
Dec 1, 2018

Conversation

@tseaver
Copy link
Contributor

Pass it through to the_begin call. Note that we need to modify
theapi_core...PollingFuture class before we can safely pass the
retry through to itsresult.

@tseavertseaver added the api: bigqueryIssues related to the BigQuery API. labelOct 25, 2018
@tseavertseaver requested a review fromtswastOctober 25, 2018 16:12
@googlebotgooglebot added the cla: yesThis human has signed the Contributor License Agreement. labelOct 25, 2018
Copy link
Contributor

@tswasttswast left a 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
Copy link
ContributorAuthor

@tswast ThePollingFuture base class already stores a retry object. If we assigned to it, we would need to ensure that its predicate included the test for_OperationNotComplete (see theDEFAULT_RETRY it uses).

@tseaver
Copy link
ContributorAuthor

I had actually planned to update thePollingFuture.result method to take the optionalretry argument as well, but wanted to think about how to deal with the_OperationNotComplete bit first.

@tseaver
Copy link
ContributorAuthor

@tswast Please see#6305 for the changes to retry the polling requests. I haven't piped through theretry argument from_AsyncJob.result(), because of issues related to_OperationNotComplete.

@tseavertseaver added the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelOct 29, 2018
@kokoro-teamkokoro-team removed the kokoro:force-runAdd this label to force Kokoro to re-run the tests. labelOct 29, 2018
@tseaver
Copy link
ContributorAuthor

If we close this PR without merging (i.e., we decidenot to add aretry argument to_AsyncJob.result), then we should change_AsyncJob.result to pass throughself._retry to the_begin call. That change won't really be useful until#6305 lands, however.

tswast reacted with thumbs up emoji

@crwilcox
Copy link
Contributor

@tseaver is this needed at all if we do#6305?

@tseaver
Copy link
ContributorAuthor

@crwilcox

is this needed at all if we do#6305?

Depends The_AsyncJob.result method itself can invoke_begin, which takes an optionalretry argument. It makes sense to me that we plumb that through so that callers ofresult can override the default.

If we decidenot to expose it, then I think westill need to pass theself._retry attribute through to begin, because the application might've configured it to override e.g., the timeout from the defaults, via something like:

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
Copy link
ContributorAuthor

Rebased to work around borked CI runs for irrelevant APIs.

@tseavertseaver merged commitbe78a96 intogoogleapis:masterDec 1, 2018
@tseavertseaver deleted the bigquery-job_result_retry_part_one branchDecember 1, 2018 00:27
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tswasttswasttswast approved these changes

@theacodestheacodesAwaiting requested review from theacodes

+1 more reviewer

@crwilcoxcrwilcoxcrwilcox approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

api: bigqueryIssues related to the BigQuery API.cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@tseaver@crwilcox@tswast@googlebot@kokoro-team

[8]ページ先頭

©2009-2025 Movatter.jp