Issue on multi instance processing

Hi,

My workflow looks like the below. The idea is to send a notification to one employee or all employees depending on settings of the application.

The issue i am observing is that the Headers of Send Email A are appearing at the time of execution of Send Email B resulting in the wrong template being sent.

The Headers section of the Send mail A is as follows,

Screen Shot 2021-06-29 at 3.50.45 PM

The Headers section of the Send mail B is as follows,

Screen Shot 2021-06-29 at 3.50.19 PM

When only one of either multi instance process is getting executed the templates do go out correctly. Its only when both are getting executed simlutaneously is the issue being observed. Send Mail A & Send Mail B both use the same worker to send mail. Any ideas what could be the cause and how i could get around this ?

Thank you

Which language client library, and what broker version are you using @Bisoux?

Do you have a minimal reproducer in a repo that I can take a look at?

Josh