AnsweredAssumed Answered

Service tasks in parallel executed multiple times

Question asked by osaxdelta on Dec 15, 2017
Latest reply on Dec 18, 2017 by osaxdelta

I am trying to use my service tasks in parallel. By research, I learnt that to use servicetasks in parallel, I need to make changes such as async=true and exlusive= false. After these changes, I managed to execute my service tasks in parallel but what I recognized now is, randomly, some service tasks get executed multiple times. For example, I created two service tasks in parallel whose jobs are only System.out.println("first") and System.out.println("second"). When I run this process and observe the outputs, there are sometimes two first-one second or one first-two second etc. What am i missing in here?

Outcomes