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.
hotfix: reduce scheduler max_workers to match database pool size (#10665)
Zamil Majdy72938590f285
diff --git a/autogpt_platform/backend/backend/executor/scheduler.py b/autogpt_platform/backend/backend/executor/scheduler.pyindex 50b165045c..3d6ac59a3c 100644--- a/autogpt_platform/backend/backend/executor/scheduler.py+++ b/autogpt_platform/backend/backend/executor/scheduler.py@@ -269,7 +269,9 @@ class Scheduler(AppService):self.scheduler = BackgroundScheduler(executors={- "default": ThreadPoolExecutor(max_workers=10), # Max 10 concurrent jobs+ "default": ThreadPoolExecutor(+ max_workers=self.db_pool_size()+ ), # Match DB pool size to prevent resource contention},job_defaults={"coalesce": True, # Skip redundant missed jobs - just run the latest