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.
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.