temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Can Child workflows inherit search attributes from a parent workflow?

Open MysticalMount opened this issue 1 year ago • 0 comments

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.

MysticalMount avatar Jan 14 '24 10:01 MysticalMount