mirror of
https://github.com/openspug/spug.git
synced 2026-02-01 15:59:54 +00:00
F 修复发布全局变量SPUG_HOST_ID和SPUG_HOST_NAME某些情况下未正确赋值的问题
This commit is contained in:
parent
0c1336aa88
commit
787de9c2a9
@ -93,6 +93,7 @@ def _ext1_deploy(req, helper, env):
|
||||
with futures.ThreadPoolExecutor(max_workers=min(10, os.cpu_count() + 5)) as executor:
|
||||
threads = []
|
||||
for h_id in json.loads(req.host_ids):
|
||||
env = AttrDict(env.items())
|
||||
threads.append(executor.submit(_deploy_ext1_host, helper, h_id, extend, env))
|
||||
for t in futures.as_completed(threads):
|
||||
exception = t.exception()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user