does prefect-cli support dynamic passing of vars for one-off flow runs? Sometimes our usecase requires adhoc execution with custom parameters (sometimes running a whole pipeline is not time efficient or necessary, like if a smaller date range needs to be backfilled etc.).
You need to use a file or escaped JSON at the moment
c
Charles Liu
06/03/2021, 7:44 PM
okay I just want to clarify the docs real quick:
Charles Liu
06/03/2021, 7:45 PM
JSON String overwrites JSON file; either one takes precedent over existing var calls in the flow correct? If so, neat that's exactly what I'm looking for!
k
Kevin Kho
06/03/2021, 7:50 PM
Yes to takes precedence. Do you mean you want to supply both a file and a string and have the string override the file?
Kevin Kho
06/03/2021, 7:50 PM
--parameters-file is a separate file with json
c
Charles Liu
06/03/2021, 8:00 PM
Oh my bad! I didn't mean to imply I was trying to use both at once, I just wanted to clarify the snippet in the doc you linked about how one overwrites the other
k
Kevin Kho
06/03/2021, 8:01 PM
These supplied parameters override the ones in the Python file, if that’s what you meant. Yep!
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.