lean live deploy skips the localhost host rewrite and symbol map mount for brokerage settings
維護者通常 6 天內回覆
評估
研究方向
Start with lean/components/docker/lean_runner.py, reading get_basic_docker_config and _mount_common_directories to understand how the existing top-level settings are handled. Compare those paths with the selected environment settings used by lean live deploy; done means the environment's localhost host is rewritten and its symbol map file is mounted.
由索引模型根據 Issue 內容生成。
描述
Expected Behavior
lean live deploy with the Terminal Link brokerage (renamed to Quant Bridge in #685) rewrites a localhost / 127.0.0.1 server host to host.docker.internal. It also mounts the symbol map file from data/symbol-properties. lean data download and lean backtest already do both.
Actual Behavior
For lean live deploy neither happens. The Lean container gets "terminal-link-server-host": "localhost", so it can't reach a server running on the user's machine. The symbol map file isn't mounted either, and terminal-link-symbol-map-file keeps its relative value.
LeanRunner only checks the top level of the Lean config (lean/components/docker/lean_runner.py: the server host loop in get_basic_docker_config and files_to_mount in _mount_common_directories). lean live deploy writes the brokerage and live data provider settings into lean_config["environments"][<environment>] instead, so the checks never find them.
Potential Solution
Apply the host rewrite and the file mounts to the selected environment's entries as well as the top-level ones.
Reproducing the Problem
lean live deploy "<project>" --brokerage "Terminal Link" --data-provider-live "Terminal Link" --terminal-link-server-host localhost ...(with all the other required--terminal-link-*options)- Look at the config passed to the container:
environments["lean-cli"]["terminal-link-server-host"]is stilllocalhost, and onlyconfig.jsonis mounted. - For comparison,
lean data download --data-provider-historical "Terminal Link" ... --terminal-link-server-host localhostpasseshost.docker.internaland mounts/Files/terminal-link-symbol-map-file.
System Information
lean-cli master (1873571).
Checklist
- I have completely filled out this template
- I have confirmed that this issue exists on the current
masterbranch - I have confirmed that this is not a duplicate issue by searching issues
- 主要語言
- Python
- 星號
- 329
- 分支
- 169
- 平均合併
- 4 天 18 小時
- 30 天內合併 PR
- 9
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
QuantConnect/lean-cli 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 25/100
QuantConnect/lean-cli#692 ·
維護者通常 6 天內回覆
-
cloud pull --encrypt leaves the project without its key path and encrypts referenced libraries可能已有人在做 @Amadeus-22 於 1 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 25/100
QuantConnect/lean-cli#688 ·
維護者通常 6 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
QuantConnect/lean-cli#681 ·
維護者通常 6 天內回覆
-
lean cloud push overwrites read-only shared library files可能已有人在做 @Amadeus-22 於 1 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 55/100
QuantConnect/lean-cli#661 · 2 則留言 ·
維護者通常 6 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
QuantConnect/lean-cli#619 ·
維護者通常 6 天內回覆
查看 QuantConnect/lean-cli 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 64/100
-
[Bug]: Responses API 500s on assistant message with empty content list可能已有人在做 @shadowmodder 今天認領。 未關閉bug
難度 2/5 1-3 小時 新手友好度 66/100
vllm-project/vllm#64940 ·
維護者通常 1 天內回覆
-
limits
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
agent-ready area: docs documentation good first issue
難度 2/5 1-3 小時 新手友好度 78/100
Soneso/stellar-agent-wallet#524 ·
維護者通常 1 天內回覆
-
Status: Triage Type: Quest
難度 2/5 1-3 小時 新手友好度 66/100
GTNewHorizons/GT-New-Horizons-Modpack#27490 ·
維護者通常 1 天內回覆