Channels
announcements
ask-marvin
best-practices-coordination-plane
data-ecosystem
data-tricks-and-tips
events
find-a-prefect-job
geo-bay-area
geo-berlin
geo-boston
geo-chicago
geo-colorado
geo-dc
geo-israel
geo-japan
geo-london
geo-nyc
geo-seattle
geo-texas
gratitude
introductions
marvin-in-the-wild
pacc-clearcover-june-12-2023
pacc-may-31-2023
ppcc-may-16-2023
prefect-ai
prefect-aws
prefect-azure
prefect-cloud
prefect-community
prefect-contributors
prefect-dbt
prefect-docker
prefect-gcp
prefect-getting-started
prefect-integrations
prefect-kubernetes
prefect-recipes
prefect-server
prefect-ui
random
show-us-what-you-got
Powered by
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
#prefect-community
Join Slack