Jackson Maxfield Brown
02/03/2020, 10:20 PMChris White
self
is a missing argumentJackson Maxfield Brown
02/03/2020, 10:24 PMJackson Maxfield Brown
02/03/2020, 10:26 PMChris White
class MyPrefectClass(MyCustomClass, Task):
...
def run(self, *args, **kwags):
# same logic as the method you wanted to decorate
that way all of your statefulness that you are relying on the class for is tracked on the Task
object