diff options
author | Erik Johnston <erikj@matrix.org> | 2023-11-17 16:36:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-17 16:36:02 +0000 |
commit | 6088303efb0f1498401718797941542089c2d432 (patch) | |
tree | 0ae5123e0ab36be68baee867e6b7159fb073c1fe /synapse/util | |
parent | Bump requests-toolbelt from 0.10.1 to 1.0.0. (#16659) (diff) | |
download | synapse-6088303efb0f1498401718797941542089c2d432.tar.xz |
Speed up how quickly we launch new tasks (#16660)
Now that we're reducing concurrency (#16656), this is more important.
Diffstat (limited to '')
-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 8c2df233d3..b254d3f84c 100644 --- a/synapse/util/task_scheduler.py +++ b/synapse/util/task_scheduler.py @@ -377,7 +377,7 @@ class TaskScheduler: self._running_tasks.remove(task.id) # Try launch a new task since we've finished with this one. - self._clock.call_later(1, self._launch_scheduled_tasks) + self._clock.call_later(0.1, self._launch_scheduled_tasks) if len(self._running_tasks) >= TaskScheduler.MAX_CONCURRENT_RUNNING_TASKS: return |