reset cache of attributes on server when enums are updated

This commit is contained in:
Jakub Trllo 2024-04-03 14:12:13 +02:00
parent 769bcbaf2e
commit 72aeb63ef9

View file

@ -3,6 +3,7 @@ import json
import copy
from ayon_server.addons import BaseServerAddon, AddonLibrary
from ayon_server.entities.core import attribute_library
from ayon_server.lib.postgres import Postgres
from .version import __version__
@ -318,6 +319,9 @@ class ApplicationsAddon(BaseServerAddon):
tools_attrib_name,
)
# Reset attributes cache on server
attribute_library.load()
async def on_settings_changed(self, *args, **kwargs):
_ = args, kwargs
await self.update_enums()