cancel
Showing results for 
Search instead for 
Did you mean: 

Process suspension when service task is in progress

fritz128
Champ in-the-making
Champ in-the-making
I want to suspend a process. For example, I want to restart my server, so I need to suspend all processes and then start them again.

Problem:
At the moment when I want to stop all my processes some very_long_service_task is proceeding.

Question:
If I want to supend my process, Do I need to wait till very_long_service_task will be completed?
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
No… if the service-task will complete AFTER you suspended the process, it (== the thread executing the service-task) will get a optimistic lock exception and it's transaction is rolled back. It's as if the execution of the service-task (and everything that happend in the same API-call/job-execution) never happened.

frederikherema1
Star Contributor
Star Contributor
No… if the service-task will complete AFTER you suspended the process, it (== the thread executing the service-task) will get a optimistic lock exception and it's transaction is rolled back. It's as if the execution of the service-task (and everything that happend in the same API-call/job-execution) never happened.

Thanks!