BUG: Async executor behaviour on long duration tasks
I'm experimenting a behaviour with Activiti 6 that I believe it should be a bug. This is the use case:
ProcessEngineConfiguration with sane defaults and async executor activated.
Simple process with (start)->(java service task)->(end)
The java service task is marked as asynchronous and just sleeps for 6 minutes (or any time exceeding the async executor job lock time in milliseconds)
After about 6 minutes the process is finished.
The process never ends and the async task is restarted over indefinitely by the async executor, somehow "forgetting" about the current execution.
This is in my opinion a critical bug, since we don't know in advance how much time a given service task can take to execute. It is even worse because it's not the async node what is actually repeated, but the complete set of operations belonging to the whole "async continuation", as if it was completely forgot when the execution takes much time than the async executor job lock time.