Channels
pacc-may-31-2023
prefect-ai
pacc-clearcover-june-12-2023
marvin-in-the-wild
data-ecosystem
geo-israel
pacc-june-14-2023
geo-japan
prefect-cloud
ppcc-may-16-2023
prefect-azure
prefect-docker
prefect-recipes
gratitude
geo-nyc
geo-bay-area
geo-boston
geo-london
geo-dc
geo-chicago
geo-berlin
geo-texas
geo-seattle
geo-colorado
prefect-community
data-tricks-and-tips
prefect-aws
prefect-gcp
introductions
find-a-prefect-job
prefect-dbt
random
events
ask-marvin
show-us-what-you-got
prefect-getting-started
prefect-integrations
prefect-contributors
best-practices-coordination-plane
announcements
prefect-server
prefect-ui
prefect-kubernetes
Powered by
Title
z
Zhibin Dai
03/07/2022, 4:34 PM
when using
conditional logic
in a flow, is it necessary to have two
with case
statements, or can i use just one that does something if a condition is true?
k
Kevin Kho
03/07/2022, 4:36 PM
You can just have one. Do you run into an issue?
z
Zhibin Dai
03/07/2022, 4:36 PM
Thanks! No im just beginning to use this and thought it would be easier to ask then test back and forth.
k
Kevin Kho
03/07/2022, 4:41 PM
There is honestly some unintuitive behavior to it that you only see when you start using it so just let me know if you encounter an issue
Just know that the mechanism is a SKIP if the condition is not met but the task inside is in the DAG. It just gets skipped
z
Zhibin Dai
03/07/2022, 4:51 PM
Will do, thanks for letting me know!
3 Views
#prefect-community
Join Slack