镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.
This repository was archived by the owner on May 7, 2026. It is now read-only.

Datastore: Allow retry and timeout configuration on a per instance level #3

Closed

Description

@Subaku

Seems the configuration for these two items are buried in the code and can't be configured on a per use basis. When debugging connectivity issues the default timeout takes forever and would love to set a shorter timeout on my calls to query.fetch(...) for example.

Or perhaps I've missed something in the docs?

Activity

  1. added
    api: datastoreIssues related to the googleapis/python-datastore API.
    type: questionRequest for information or clarification. Not an issue.
    on Feb 7, 2020
  2. self-assigned this
    on Aug 11, 2020
  3. tseaver commented on Aug 11, 2020

    @tseaver
    Contributor

    Sketch of implementation:

    • Add retry and timeout args to Batch.commit and plumb through to the underlying RPC in _commit.
    • Add retry and timeout args to Client.get, and plumb through to the underlying RPC.
    • Add retry and timeout args to Client.get_multi, and plumb through to the underlying RPC.
    • Add retry and timeout args to Client.put, and plumb through to the underlying RPC (Batch.commit).
    • Add retry and timeout args to Client.put_multi, and plumb through to the underlying RPC (Batch.commit).
    • Add retry and timeout args to Client.delete, and plumb through to the underlying RPC (Batch.commit).
    • Add retry and timeout args to Client.delete_multi, and plumb through to the underlying RPC (Batch.commit).
    • Add retry and timeout args to Client.allocate_ids, and plumb through to the underlying RPC.
    • Add retry and timeout args to Client.reserve_ids, and plumb through to the underlying RPC.
    • Add retry and timeout args to Transaction.begin, and plumb through to the underlying RPC.
    • Add retry and timeout args to Transaction.rollback, and plumb through to the underlying RPC.
    • Add retry and timeout args to Transaction.commit, and plumb through to the base class method.
    • Add retry and timeout args to query.Iterator ctor, and plumb through to the underlying RPC in _next_page.
    • Add retry and timeout args to Query.fetch, and plumb through to the iterator ctor.
  4. added a commit that references this issue on Aug 12, 2020
    f3283e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the googleapis/python-datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions