Skip to content

feat: add long-running-operation polling for function admin calls - #385

Draft
annguy3n wants to merge 1 commit into
udf/06-parse-argsfrom
udf/07-operation-waiter
Draft

annguy3n wants to merge 1 commit into
udf/06-parse-argsfrom
udf/07-operation-waiter

Conversation

@annguy3n

Copy link
Copy Markdown
  • Adds WaitFunctionOperation, which polls an operation with backoff until done and unpacks the resulting Function.
  • Malformed operations (nil, pending without a name, done without a result, wrong response type, error with code zero) return errors instead of hanging or panicking. Context deadlines interrupt the backoff sleep.
  • go.mod: longrunning, gax-go and genproto/googleapis/rpc become direct requirements.

Reviewer notes: error paths are tested here. The success path is exercised by the createfunction tests in PR 8. The client constructor gains a backoff argument in this PR.


Stack: 7 of 12. Original implementation by @shantstepanian in #373; this stack re-slices that change into reviewable pieces.

Draft: the Function admin messages and RPCs are not yet in a released cloud.google.com/go/bigtable, so this does not build against the public module. It was built and tested against locally generated admin protos. The stack leaves draft once a module release includes them and go.mod is bumped.

@annguy3n
annguy3n added this pull request to stack #391 November 19, 2026 01:07
Adds WaitFunctionOperation, which polls a CreateFunction or UpdateFunction operation until it is done and unpacks the resulting Function, and marks the longrunning, gax-go and genproto/googleapis/rpc modules as direct requirements. Only the error paths are tested here; no command calls WaitFunctionOperation yet.
@annguy3n
annguy3n force-pushed the udf/07-operation-waiter branch from 55326c2 to 5f438ac Compare November 23, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants