temporalio / temporalio/features
[Feature Request] Workflow Update Get-Status (and Wait-For-Stage) Capability
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 32
- Forks
- 28
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Description
Describe the solution you'd like
Users need a way, given an existing update, to get its current status and optionally wait for the status to reach a certain stage.
We already have the functionality in PollWorkflowExecutionUpdate. I think this should basically just be a single GetStatus(waitForStage? = dontWait) -> WorkflowUpdateInfo call on the update handle. If no stage is provided, this is a non-blocking call, otherwise it waits until that stage is reached (looping if needed when long-poll timeout comes back as empty). The WorkflowUpdateInfo should have the current stage it is on and the result if there is any. The GetResult call that exists today (when a result is not already obtained from start) should just be a thin wrapper for this that waits for COMPLETED and returns the success outcome or throws on failure.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the existing PollWorkflowExecutionUpdate functionality and the current GetResult path. The work is done when an update handle can report WorkflowUpdateInfo immediately or wait for a requested stage, and GetResult delegates to completion and preserves success or failure behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend-api-design, distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100