feat(events): add missing events

These events weren't being emitted via socket.io:
- DownloadCancelledEvent
- DownloadCompleteEvent
- DownloadErrorEvent
- DownloadProgressEvent
- DownloadStartedEvent
- ModelInstallDownloadsCompleteEvent
This commit is contained in:
psychedelicious 2024-03-31 12:03:49 +11:00
parent 88a2340b95
commit 5cdf71b72f

View File

@ -12,6 +12,11 @@ from invokeai.app.services.events.events_common import (
BulkDownloadErrorEvent, BulkDownloadErrorEvent,
BulkDownloadEventBase, BulkDownloadEventBase,
BulkDownloadStartedEvent, BulkDownloadStartedEvent,
DownloadCancelledEvent,
DownloadCompleteEvent,
DownloadErrorEvent,
DownloadProgressEvent,
DownloadStartedEvent,
FastAPIEvent, FastAPIEvent,
InvocationCompleteEvent, InvocationCompleteEvent,
InvocationDenoiseProgressEvent, InvocationDenoiseProgressEvent,
@ -21,6 +26,7 @@ from invokeai.app.services.events.events_common import (
ModelInstallCancelledEvent, ModelInstallCancelledEvent,
ModelInstallCompleteEvent, ModelInstallCompleteEvent,
ModelInstallDownloadProgressEvent, ModelInstallDownloadProgressEvent,
ModelInstallDownloadsCompleteEvent,
ModelInstallErrorEvent, ModelInstallErrorEvent,
ModelInstallStartedEvent, ModelInstallStartedEvent,
ModelLoadCompleteEvent, ModelLoadCompleteEvent,
@ -78,9 +84,15 @@ class SocketIO:
register_events( register_events(
{ {
DownloadCancelledEvent,
DownloadCompleteEvent,
DownloadErrorEvent,
DownloadProgressEvent,
DownloadStartedEvent,
ModelLoadStartedEvent, ModelLoadStartedEvent,
ModelLoadCompleteEvent, ModelLoadCompleteEvent,
ModelInstallDownloadProgressEvent, ModelInstallDownloadProgressEvent,
ModelInstallDownloadsCompleteEvent,
ModelInstallStartedEvent, ModelInstallStartedEvent,
ModelInstallCompleteEvent, ModelInstallCompleteEvent,
ModelInstallCancelledEvent, ModelInstallCancelledEvent,