in the following scenario the job engine starts a service task twice, why?
Scenario: A simple process model contains a single service task which is marked with "async continuation" (see http://camunda.org/share/#/process/5d11f950-186d-4040-b4d9-bc238a9e5ebb). The service task takes more than five minutes to execute, e.g. "Thread.sleep(6*60*1000);".
Actual behaviour on 7.1.0-Final:
The service task is started and starts running correctly. After exactly five minutes the job engine starts the service task a second time (why?) which then results in an OptimisticLockingException as soon as the first execution of the task is finished.
Is this the expected behaviour? Why is the service task started a second time? Which timeout of five minutes is responsible for this behaviour?
The correct solution for such long running tasks would probably be to model a "Send Task" which starts an asynchronous execution, e.g. in a thread, which in turn is correlated after completion with a subsequent "Receive Task".
However, the behaviour I described above seems kind of strange.
Regards
Tobias
Regards
Tobias