Mixing Sessions in Golang and Python

I have:

  • a golang worker that only does workflows and not activities
  • a python worker that only does activities but no workflows
  • each worker is on a different cloud, different machines / different country
  • a workflow written in golang, but defines 3 python activities (download_file, do_stuff, upload_file)

Can I use the golang worker as a session worker to make the python activities stick to a single machine?

No. The session requires both activity and workflow worker support and is only available in Go at this point. Use host specific task queue as a workaround.

Is this the correct example? samples-python/worker_specific_task_queues at main · temporalio/samples-python · GitHub

Thank you!

Yes, this is correct.