hey, i'm trying to start a flow from cli with param flag. I have a boolean param that i want to set to true so i use
--param bool_param=True
but
True
is treated as a String during flow execution. How can i pass a boolean param in cli for flow run ?
✅ 1
a
Anna Geller
05/20/2022, 1:41 PM
there is no type validation for parameters in Prefect 1.0 so you would need to explicitly check types and convert when needed within the task that needs it I believe (I could be wrong)
I can say for sure that in Prefect 2.0 parameters are strongly typed are validated using pydantic
can you try triggering the same flow run from the UI? there should be some magic there allowing to select the type but this is not the case for CLI afaik