Hi....We are trying to move from Prefect 1 to Prefect 2. In all our flows, for all tasks, we inherit where we inherit from Prefect Task class. I understand that we cannot continue this in Prefect 2. Is this correct or there is any alternative? Asking this because it would be a big change for us to change all the flows and tasks to use decorators instead.
s
Sahil Rangwala
03/30/2023, 5:17 PM
Yes, adding the decorator is the best option as the programming experience is closer to pure python with merely adding this decorator to your pre-existing python functions. Of course you can programmatically create the flows and deployments, but its more of a hand on approach for orchestration.
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.