temporalio / temporalio/temporal
Query at a specific WorkflowTaskStarted eventId
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.2k
- Forks
- 1.9k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 228
Description
Is your feature request related to a problem? Please describe.
For debugging purposes, it is useful to know a query result at a specific point of workflow execution.
As a separate feature, It would be nice to be able to get a query result at each WorkflowTaskStarted event as a single API call. This would be very helpful in a certain troubleshooting scenarios.
Describe the solution you'd like
Add "WorkflowTaskStartedEventId" argument to query request. The workflow should be replayed up to that event id and a query should be executed against it.
Add a new API that returns a list of query results. One result per WorkflowTaskStarted eventId.
Additional context
This would allow querying terminated workflows safely.
Contributor guide
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 reviewing the existing query request API and the workflow replay behavior described in the issue. Clarify how a WorkflowTaskStarted eventId should bound replay and how results should be returned for each such event. Done means the requested point-in-time query and the API returning one result per WorkflowTaskStarted event are specified and covered by tests.
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
- Needs clarification
- Newbie friendliness
- 25/100