ynput / ayon-ftrack

Apache License 2.0
3 stars 9 forks source link

Processor: Download event handlers from addons #104

Closed iLLiCiTiT closed 4 months ago

iLLiCiTiT commented 5 months ago

Description

Ftrack processor is able to download service event handlers from other addons.

Additional information

Ftrack addon allows an addon to define it's custom service handlers by implementing get_custom_ftrack_handlers_endpoint returning endpoint leading to file on AYON server.

Processor will use always current production, staging or dev bundle addons (based on used variant in service).

The files are by default stored to appdirs, download root can be changed by env variable. But it will always generate random process id under which are stored the files so it is possible to run multiple processes (or re-use the same docker image). Implemented basic cleanup strategy to remove 1 hour inactive folders.