Run cleanup process functionality on crash. Which is potential fix of stuck processor event.
Additional info
It was reported multiple times that events are not actually processed, but service in web ui is shows as "running". Only service restart helps to resolve the issue. Changes here makes sure that cleanup of process happens when process crashes, not just when is terminated. Hopefully will resolve the issue.
Cleanup process funcationlity stops running threading timers. They can cause that the process is stuck.
Testing notes:
I couldn't replicate the issue so I don't know how to test. For now:
Changelog Description
Run cleanup process functionality on crash. Which is potential fix of stuck processor event.
Additional info
It was reported multiple times that events are not actually processed, but service in web ui is shows as "running". Only service restart helps to resolve the issue. Changes here makes sure that cleanup of process happens when process crashes, not just when is terminated. Hopefully will resolve the issue.
Cleanup process funcationlity stops running threading timers. They can cause that the process is stuck.
Testing notes:
I couldn't replicate the issue so I don't know how to test. For now: