temporalio / temporalio/temporal

Add firstExecutionRunId to system search attribute

Open
#4,247 1 comment 1 reaction 1 assignee View on GitHub

@rodrigozhou is already working on this.

Since Apr 28, 2023.

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.
Right now runId is always changed when :

  • ContinueAsNew
  • Reset
  • Cron
  • WorkflowRetry

However, user have to rely on runId to distinguish different executions when using IdReusePolicy. For example, user starts two different runs with IdReusePolicy, and they are both completed after certain reset or continueAsNew.

Now user wants to query the final workflow results for different runs.

Describe the solution you'd like
User can provide the firstExecutionRunId to find out the last runId (filter by completed or running status) to find out the last runId. And then use the final runId to query the workflows

Describe alternatives you've considered
User can do search attribute themselves, but it's repeated work.

Additional context
NA

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.