debug模式下不指定核心(否则无法使用cuda)
This commit is contained in:
@@ -217,7 +217,7 @@ def start_service_group(group: dict, hls_config: dict = None, device_id: int = N
|
||||
|
||||
# DEBUG_MODE=True 时前台运行,方便调试;False 时后台运行,适合部署
|
||||
if DEBUG_MODE:
|
||||
process = subprocess.Popen(cmd, env=env)
|
||||
process = subprocess.Popen(cmd)
|
||||
else:
|
||||
process = subprocess.Popen(cmd, env=env, start_new_session=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user