great-egg-84692
01/08/2025, 3:49 PMmodel_slugs = Parameter(
"model_slugs",
default=["foo", "bar"],
type=JSONType,
)
https://github.com/csscompany-enterprise/monorepo/blob/fafc54072082ff868869406e12a[…]istics-modeling/olm-flows/olm_flows/quantile_regression_flow.py, the flow worked when I trigger it the first time, but on following scheduled runs, it complains
Usage: flow.py init [OPTIONS]
Try 'flow.py init --help' for help.
Error: Invalid value for '--model_slugs': [foo, is not a valid JSON object
https://argo.cssinternal.com/workflows/order-logistics-modeling/olmflows.prod.quantiler[…]0-4199800187:main&uid=bc8c1734-06f5-4ad6-950a-8989ec8db984
any thoughts why this could be?square-wire-39606
01/08/2025, 11:45 PMhundreds-rainbow-67050
01/10/2025, 8:19 AMdefault='["foo", "bar"]'
Both ways are working for me locally, but I suspect it needs to be a string during the triggerbulky-afternoon-92433
01/10/2025, 12:46 PM@trigger/@trigger_on_finish
or is it a regular flow that is failing on argo? Which version of metaflow are you getting the error with?
I'm unable to reproduce the exact error with a jsontype parameter with list default, and there have been a bunch of fixes regarding the parameter defaults that have gone in the past half a year.great-egg-84692
01/10/2025, 2:57 PMgreat-egg-84692
01/10/2025, 3:01 PM