Hi....We are trying to move from Prefect 1 to Pref...
# ask-community
a
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
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.