ynput / ayon-ftrack

Apache License 2.0
3 stars 9 forks source link

Event handlers: Add cleanup method #153

Closed iLLiCiTiT closed 1 week ago

iLLiCiTiT commented 1 week ago

Changelog Description

Event handlers have cleanup method which is called when ftrack server stops.

Additional info

This works only for event handlers that were not discovered with register function in the file. This way we can call "cleanup" code related to handlers, for example threading timers.

Testing notes:

Only way how to test it is to have running service for few days and validate that Create daily lists is executed only once each day.