Join Slack
Powered by
Hi all, does prefect 2.0 support class based task ...
# best-practices
l
link89
09/07/2022, 6:43 AM
Hi all, does prefect 2.0 support class based task definition? The reason I ask is because I have serveral tasks that can share common steps and internal states, which could be done by inherit the same based class natually.
✅ 1
k
Khuyen Tran
09/07/2022, 3:04 PM
Yes, you could inherit from
FunctionTask
.
Example
l
link89
09/09/2022, 2:52 AM
Thank you!
17
Views
Open in Slack
Previous
Next