Does deleting TaskResult will stop the task?

Hi,

Anybody know how to stop a task which got stuck. have been deleting the task result.

Thanks.

Deleting the TaskResult generally does not result in causing running threads/processes to force-stop or exit, unless the task itself reaches a point where it’s expecting to update a TaskResult (or other object that was since deleted) and causes an exception. The only sure-fire way to terminate a task (including the underlying threads/processes) is to actually stop the application server itself (i.e. restarting Tomcat).

Simply deleting the task result does not guarantee the termination of the underlying process, and may result in orphaned objects remaining in the system. To ensure complete termination of the task, it is advisable to restart the application server. It is also recommended to investigate the root cause of the task being stuck to prevent similar occurrences in the future