https://prefect.io logo
Title
d

datamongus

04/17/2023, 3:11 PM
Is it possible to make parameters optional vs. required in Prefect 2.0?
1
z

Zanie

04/17/2023, 3:48 PM
Definitely! Just set a default value for them in the function signature if you want them to be optional
d

datamongus

04/17/2023, 3:49 PM
Thank you, I did that but in the UI it still shows “required” when I try to run without setting a value
k

Kevin Grismore

04/17/2023, 3:50 PM
Have you redeployed that flow since changing the parameters to have defaults?
d

datamongus

04/17/2023, 3:51 PM
Yes I have I’ll redeploy again