temporalio / temporalio/temporal
Can Child workflows inherit search attributes from a parent workflow?
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 23.2k
- Forks
- 1.9k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 228
Description
Im using Go sdk, starting Child workflows with search attributes is working fine, but when that workflow then spawns another workflow, I was hoping the SearchAttributes would be inherited.
Im using this to prepare the context for execution of the child workflow:
cwo := workflow.GetChildWorkflowOptions(ctx)
ctx = workflow.WithChildOptions(ctx, cwo)
But the executed workflow using that context doesnt seem to have the search attributes attached.
I doubt this is a bug, just a lack of understanding on my part, any assistance appreciated, it wasnt easy to find an answer via search engines.
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 with the Go SDK entry points workflow.GetChildWorkflowOptions and workflow.WithChildOptions, then trace how SearchAttributes are supplied to the first child and to a workflow it spawns. Done means establishing whether inheritance is supported and recording the expected behavior or a clear documentation change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100