This commit is contained in:
retoor 2025-09-15 05:00:11 +02:00
parent cbbaa22f56
commit 0b8c324944

View File

@ -26,7 +26,7 @@ class ChannelMessageService(BaseService):
self._executor_pools = {} self._executor_pools = {}
global jinja2_env global jinja2_env
jinja2_env = self.app.jinja2_env jinja2_env = self.app.jinja2_env
self._max_workers = 3 self._max_workers = 1
def get_or_create_executor(self, uid): def get_or_create_executor(self, uid):
if not uid in self._executor_pools: if not uid in self._executor_pools:
self._executor_pools[uid] = ProcessPoolExecutor(max_workers=self._max_workers) self._executor_pools[uid] = ProcessPoolExecutor(max_workers=self._max_workers)