The second message goes not in tasks queue but in shared exchange. It happens because Publisher bases on properties left from previous message.
Library should either instantiate new Publisher each time or reset properties to its default state.
I expect the Consumer meets the same problem.
Programmer may escape the problem with providing full config to every publish. But this is extremely unclear behaviour. I think it is better to patch the library.
If you publish first message:
And then publish second message:
The second message goes not in
tasks
queue but inshared
exchange. It happens because Publisher bases on properties left from previous message.Library should either instantiate new Publisher each time or reset properties to its default state.
I expect the Consumer meets the same problem.
Programmer may escape the problem with providing full config to every publish. But this is extremely unclear behaviour. I think it is better to patch the library.