Jackson Maxfield Brown
02/03/2020, 10:20 PMChris White
02/03/2020, 10:24 PMself
is a missing argumentJackson Maxfield Brown
02/03/2020, 10:24 PMChris White
02/03/2020, 10:29 PMclass 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