The leecher is receiving all events that happen on Aquarium. Some of them might not be inside a synced project.
To avoid unnecessary event to process, we can check if the event is part of a synced project by using the event.get_context() un the callback function:
The leecher is receiving all events that happen on Aquarium. Some of them might not be inside a synced project.
To avoid unnecessary event to process, we can check if the event is part of a synced project by using the
event.get_context()
un the callback function:https://github.com/ynput/ayon-aquarium/blob/ea0e891187e601675408219b7ae54157701666b3/services/leecher/leecher/leecher.py#L31-L50
Here is a not tested example: