temporalio / temporalio/temporal

Query at a specific WorkflowTaskStarted eventId

Open
#4,030 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.