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.
fix(backend): Avoid executor stuck on cleanup waiting execution completion
Zamil Majdy4d99ae27c9cb
diff --git a/autogpt_platform/backend/backend/executor/manager.py b/autogpt_platform/backend/backend/executor/manager.pyindex bed74b1737..48c40b23c3 100644--- a/autogpt_platform/backend/backend/executor/manager.py+++ b/autogpt_platform/backend/backend/executor/manager.py@@ -1124,7 +1124,7 @@ class ExecutionManager(AppProcess):if hasattr(self, "executor"):log(f"{prefix} ⏳ Shutting down GraphExec pool...")- self.executor.shutdown(cancel_futures=False, wait=True)+ self.executor.shutdown(cancel_futures=True, wait=False)log(f"{prefix} ⏳ Disconnecting Redis...")redis.disconnect()