lean live deploy skips the localhost host rewrite and symbol map mount for brokerage settings
I maintainer di solito rispondono entro 7 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 68/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 329
- Fork
- 169
- Merge medio
- 5g 16h
- PR unite (30g)
- 10
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di QuantConnect/lean-cli
-
cloud pull --encrypt leaves the project without its key path and encrypts referenced librariesForse già presa @Amadeus-22 l’ha presa 1 giorno fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
QuantConnect/lean-cli#688 ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
QuantConnect/lean-cli#681 ·
I maintainer di solito rispondono entro 7 giorni
-
lean cloud push overwrites read-only shared library filesForse già presa @Amadeus-22 l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
QuantConnect/lean-cli#661 · 2 commenti ·
I maintainer di solito rispondono entro 7 giorni
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
QuantConnect/lean-cli#619 ·
I maintainer di solito rispondono entro 7 giorni
-
Implements AutocompleteForse di nuovo libera @shreejaykurhade l’ha presa 218 giorni fa e non c’è nessuna pull request aperta. Apertafeature
QuantConnect/lean-cli#602 · 6 commenti · 3 reazioni · 1 assegnatario ·
I maintainer di solito rispondono entro 7 giorni
Tutte le issue di QuantConnect/lean-cli
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
BCDA-APS/polar-bits#93 ·
-
infer_audio_type only recognises one MPEG Layer III frame header, so most MP3 files are rejectedForse già presa @Steve-20-ai l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] - ssh_config `Match tagged` statement always appliesForse già presa @AtharvRG l’ha presa oggi. ApertaBug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
paramiko/paramiko#2715 · 1 commento ·
I maintainer di solito rispondono entro 9 giorni
-
auto-rejected intake mcp-intake needs-salvage priority:high type:feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Ikalus1988/MisakaNet#4221 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno