temporalio / temporalio/temporal
Add firstExecutionRunId to system search attribute
@rodrigozhou is already working on this.
Since Apr 28, 2023.
- 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
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.
Assessment
This issue has not been assessed yet.