diff options
author | Erik Johnston <erikj@matrix.org> | 2023-11-17 13:14:26 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 13:14:26 +0000 |
commit | 700c8a0de5df7815949b8c792e8e471a91bb8721 (patch) | |
tree | 1ecd367308e34ed5ce980401878bd58d4920156f /synapse/util | |
parent | Revert "Fix test not detecting tables with missing primary keys and missing r... (diff) | |
download | synapse-700c8a0de5df7815949b8c792e8e471a91bb8721.tar.xz |
Reduce task concurrency (#16656)
Diffstat (limited to 'synapse/util')
-rw-r--r-- | synapse/util/task_scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/task_scheduler.py b/synapse/util/task_scheduler.py index 29c561e555..8c2df233d3 100644 --- a/synapse/util/task_scheduler.py +++ b/synapse/util/task_scheduler.py @@ -71,7 +71,7 @@ class TaskScheduler: # Time before a complete or failed task is deleted from the DB KEEP_TASKS_FOR_MS = 7 * 24 * 60 * 60 * 1000 # 1 week # Maximum number of tasks that can run at the same time - MAX_CONCURRENT_RUNNING_TASKS = 10 + MAX_CONCURRENT_RUNNING_TASKS = 5 # Time from the last task update after which we will log a warning LAST_UPDATE_BEFORE_WARNING_MS = 24 * 60 * 60 * 1000 # 24hrs |