Update.
This commit is contained in:
parent
cbbaa22f56
commit
0b8c324944
@ -26,7 +26,7 @@ class ChannelMessageService(BaseService):
|
||||
self._executor_pools = {}
|
||||
global jinja2_env
|
||||
jinja2_env = self.app.jinja2_env
|
||||
self._max_workers = 3
|
||||
self._max_workers = 1
|
||||
def get_or_create_executor(self, uid):
|
||||
if not uid in self._executor_pools:
|
||||
self._executor_pools[uid] = ProcessPoolExecutor(max_workers=self._max_workers)
|
||||
|
Loading…
Reference in New Issue
Block a user