Register workflow in Python and Typescript worker

Hi,

I have created three different git repositories as follows:

  1. Python-Worker (includes two activities)
  2. Typescript-Worker (includes one activity)
  3. Typescript workflow (workflow name: parentworkflow which will invoke above activities)

Facing issue with typescript worker on starting workflow:

Issue: Starting workflow that is present in Typescript-Worker repository (added workflow here previously to test) even when I’m starting workflow from Typescript workflow repository.
How can we register workflow (which is in Typescript workflow repo) in Typescript worker repository?
typescript-worker:

workflow-client:

Hello @nehapatil7199

Starting workflow that is present in Typescript-Worker repository (added workflow here previously to test ) even when I’m starting workflow from Typescript workflow repository.

What is the issue?

How can we register workflow (which is in Typescript workflow repo ) in Typescript worker repository?

you can create a module containing your “Typescript workflow” and declare it as a dependency in the Typescript-Worker" package.json. Then you should be able to import and use the workflow from your worker.

Or you can create a bundle containing your workflow code and use the bundle to initialize your worker, see

1 Like

Make sure you’re using separate task queues for the different workers so they don’t pick up work they can’t handle.