i am attempting to use prefect to manage my flow,b...
# prefect-getting-started
d
i am attempting to use prefect to manage my flow,but adding @flow will result in an error.Can methods modified by @ flow not be related to classes?But I used to use the 2.14.16 version of Perfect and directly used @ flow without any errors.

https://i.stack.imgur.com/XRMVW.png

n
generally flows and tasks are meant to be functional. if you want to use them with classes, you’re free to call them inside of a class’s method, but not to decorate the method itself.
🙌 1