https://prefect.io logo
d

Domenico Di Gangi

04/12/2022, 2:31 PM
Hi! Is it possible to define a task by decorating a class method in orion with @ task? looking at orion docs I don't seem to find examples that use class methods. Is this discouraged by design somehow?
a

Anna Geller

04/12/2022, 2:38 PM
Functional API is encouraged because classes are stateful. This Discourse topic explains it more
d

Domenico Di Gangi

04/12/2022, 2:39 PM
many thanks @Anna Geller!
👍 1
3 Views