Compare commits

...

3 commits

Author SHA1 Message Date
1a1dfc7d2a Fix module defined event ingest 2025-03-07 02:09:34 -05:00
65d527bdfa Fix some plugin requests -> httpx imports 2025-03-07 01:39:07 -05:00
e67b31daf8 Fix missing await 2025-03-07 01:38:19 -05:00
4 changed files with 8 additions and 3 deletions

View file

@ -217,6 +217,8 @@ class MainProcess:
except Exception as e:
raise ValueError(f'Failed to initalize {module_name} plugin "{plugin_name}" - {e}')
self.bus_server.update_eventclasses()
# Run plugin definitions
with progressbar(list(config.nodes), label=f"Executing {self.config_path}") as bar:
for node in bar:

View file

@ -19,6 +19,9 @@ class WebsocketServerProcess:
self._send_queue = asyncio.Queue()
self.clients = set()
self.update_eventclasses()
def update_eventclasses(self):
self._event_classes = get_subclasses(Event)
# Data input (external application socket -> plugin/chat pipe)
@ -45,7 +48,7 @@ class WebsocketServerProcess:
except websockets.exceptions.ConnectionClosedError:
pass
except asyncio.CancelledError:
ws.close()
await ws.close()
finally:
self.clients.discard(ws)

View file

@ -4,7 +4,7 @@ import pickle
import os
import maya
from httpx.exceptions import HTTPError
from httpx import HTTPError
from owoify.owoify import owoify, Owoness
from ovtk_audiencekit.core import PluginBase

View file

@ -1,6 +1,6 @@
from argparse import ArgumentError
from httpx.exceptions import HTTPError
from httpx import HTTPError
from ovtk_audiencekit.core import PluginBase
from ovtk_audiencekit.plugins.builtins.Command import Command, CommandTypes