Spawning a child workflow on another worker with Java SDK

Hi,

I’m following the example of spawning a child workflow in this doc.

If the workflow called as a child hasn’t been registered to the same worker as the parent, I’m seeing the following error from the SDK:

Unknown workflow type "ChildWorkflow". Known types are [ParentWorkflow]

Is it a requirement that the child workflow be registered on the same worker as the parent?

The doc here seems to suggest the child can be registered on a separate worker:

Because a Child Workflow Execution can be processed by a completely separate set of Workers than the Parent Workflow Execution, it can act as an entirely separate service.

Thanks

Different workers must use different task queue names. So let the child workflow listener listen on a different task queue than the parent. Then set the child task queue name through ChildWorkflowOptions.taskQueue property.

1 Like