Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

feat(platform): Move NotificationManager service from rest-api pod to scheduler pod (#10425)

Zamil Majdy3b963e59ccd0
diff --git a/autogpt_platform/backend/backend/rest.py b/autogpt_platform/backend/backend/rest.py
index 0fb1eed875..4a45d407d1 100644
--- a/autogpt_platform/backend/backend/rest.py
+++ b/autogpt_platform/backend/backend/rest.py
@@ -1,6 +1,5 @@
from backend.app import run_processes
from backend.executor import DatabaseManager
-from backend.notifications.notifications import NotificationManager
from backend.server.rest_api import AgentServer
@@ -9,7 +8,6 @@ def main():
Run all the processes required for the AutoGPT-server REST API.
"""
run_processes(
- NotificationManager(),
DatabaseManager(),
AgentServer(),
)
diff --git a/autogpt_platform/backend/backend/scheduler.py b/autogpt_platform/backend/backend/scheduler.py
index 22be4bf7fd..b42e32c2d9 100644
--- a/autogpt_platform/backend/backend/scheduler.py
+++ b/autogpt_platform/backend/backend/scheduler.py
@@ -1,12 +1,16 @@
from backend.app import run_processes
from backend.executor.scheduler import Scheduler
+from backend.notifications.notifications import NotificationManager
def main():
"""
Run all the processes required for the AutoGPT-server Scheduling System.
"""
- run_processes(Scheduler())
+ run_processes(
+ NotificationManager(),
+ Scheduler(),
+ )
if __name__ == "__main__":