Hi. I'm not missing anything specific from this, but wanted to make sure: Prefect 2 does not have an alternative for Prefect 1's
Flow(...).validate()
, right?
✅ 1
k
Khuyen Tran
11/07/2022, 4:37 PM
I’m not very familiar with Prefect 1's
Flow(...).validate()
. Does it validate the types of a flow’s parameters?
s
Stéphan Taljaard
11/08/2022, 12:34 PM
Hi. No.
validate()
checks if a flow is valid by essentially checking if all tasks are added correctly. I think it's more DAG-focused, which Prefect 2 is not. So that's my guess for why there isn't a similar native feature?
k
Khuyen Tran
11/10/2022, 4:01 PM
Yeah I think so. In the future, we might add DAG to 2.0 so this could be the future feature
👍 1
z
Zanie
11/15/2022, 5:29 AM
I don’t really know what this would mean in v2 since it’s not possible for a flow to contain tasks from outside the flow.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.