← back to Exo
Tweaked, Still Broken tho
70f0f09c05f5e3020504d62e19de5f822122c744 · 2025-07-14 21:19:39 +0100 · Arbion Halili
Files touched
M shared/types/events/common.pyM shared/types/events/events.py
Diff
commit 70f0f09c05f5e3020504d62e19de5f822122c744
Author: Arbion Halili <99731180+ToxicPine@users.noreply.github.com>
Date: Mon Jul 14 21:19:39 2025 +0100
Tweaked, Still Broken tho
---
shared/types/events/common.py | 2 ++
shared/types/events/events.py | 14 +++++++++++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/shared/types/events/common.py b/shared/types/events/common.py
index a0abc252..a685c846 100644
--- a/shared/types/events/common.py
+++ b/shared/types/events/common.py
@@ -49,6 +49,8 @@ class StreamingEventTypes(str, Enum):
class InstanceEventTypes(str, Enum):
InstanceCreated = "InstanceCreated"
InstanceDeleted = "InstanceDeleted"
+ InstanceActivated = "InstanceActivated"
+ InstanceDeactivated = "InstanceDeactivated"
InstanceReplacedAtomically = "InstanceReplacedAtomically"
diff --git a/shared/types/events/events.py b/shared/types/events/events.py
index fbb19798..fe8d453e 100644
--- a/shared/types/events/events.py
+++ b/shared/types/events/events.py
@@ -80,6 +80,16 @@ class InstanceCreated(Event[EventCategoryEnum.MutatesInstanceState]):
instance_type: TypeOfInstance
+class InstanceActivated(Event[EventCategoryEnum.MutatesInstanceState]):
+ event_type: EventTypes = InstanceEventTypes.InstanceActivated
+ instance_id: InstanceId
+
+
+class InstanceDeactivated(Event[EventCategoryEnum.MutatesInstanceState]):
+ event_type: EventTypes = InstanceEventTypes.InstanceDeactivated
+ instance_id: InstanceId
+
+
class InstanceDeleted(Event[EventCategoryEnum.MutatesInstanceState]):
event_type: EventTypes = InstanceEventTypes.InstanceDeleted
instance_id: InstanceId
@@ -91,9 +101,7 @@ class InstanceReplacedAtomically(Event[EventCategoryEnum.MutatesInstanceState]):
event_type: EventTypes = InstanceEventTypes.InstanceReplacedAtomically
instance_to_replace: InstanceId
new_instance_id: InstanceId
- new_instance_params: InstanceParams
- new_instance_type: TypeOfInstance
-
+
class InstanceSagaRunnerStateUpdated(Event[EventCategoryEnum.MutatesInstanceState]):
event_type: EventTypes = InstanceStateEventTypes.InstanceSagaRunnerStateUpdated
← 8799c288 BROKEN: work thus far
·
back to Exo
·
fix: Event definitions, state definitions df6626fa →