mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-09 23:28:07 -05:00
Merge branch 'master' of https://github.com/Significant-Gravitas/AutoGPT into dev
This commit is contained in:
@@ -269,7 +269,9 @@ class Scheduler(AppService):
|
|||||||
|
|
||||||
self.scheduler = BackgroundScheduler(
|
self.scheduler = BackgroundScheduler(
|
||||||
executors={
|
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={
|
job_defaults={
|
||||||
"coalesce": True, # Skip redundant missed jobs - just run the latest
|
"coalesce": True, # Skip redundant missed jobs - just run the latest
|
||||||
|
|||||||
Reference in New Issue
Block a user