mirror of https://github.com/openspug/spug
F 修复发布全局变量SPUG_HOST_ID和SPUG_HOST_NAME某些情况下未正确赋值的问题
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…
Reference in New Issue