ynput / ayon-ftrack

Apache License 2.0
3 stars 9 forks source link

Service processor: Cleanup process on fail #119

Closed iLLiCiTiT closed 2 months ago

iLLiCiTiT commented 2 months ago

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:

  1. Start services.
  2. They should work as before.