Hi how does one pass in a list parameter to the pr...
# ask-community
a
Hi how does one pass in a list parameter to the prefect cli? I tried
--param overrides='["exp=test_exp", "dataset=test_MS", "pairs_file=test_MS_chr22.tsv"]'
and the variants but it complained about the format
k
Hey @An Hoang, the syntax here works for me. You want this to appear in the flow as
overrides = ["exp=test_exp", "dataset=test_MS", "pairs_file=test_MS_chr22.tsv"]
right? What error do you get? Or are the
exp
,
dataset
and
pairs_file
things you want to set?
a
Hi kevin it's the former, so I want the
overrides
param to be a list of strings Here's my command and error:
Copy code
(.venv) (jupyterlab) anhoang@c2b9 /lab/corradin_biobank/FOR_AN/OVP/corradin_ovp_utils$ prefect run -n test --execute --param config_path="conf/hydra_conf" --param pairs_file=test_MS_chr22.tsv --param overrides='["exp=test_exp", "dataset=test_MS", "pairs_file=test_MS_chr22.tsv"]' --run-name test_pipeline_run_from_terminal

Invalid parameter option 'overrides=["exp=test_exp", "dataset=test_MS", "pairs_file=test_MS_chr22.tsv"]'. Expected format 'key=value'.
k
Oh it’s the equals causing issues