temporalio / temporalio/temporal

Can Child workflows inherit search attributes from a parent workflow?

Open
#5,298 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

potential-bug
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.