Hello all, I see that I can set up retry logic with
Copy code
@task(max_retries=3)
but how can I set up the retry logic if I am not setting up tasks with the functional API? I do not see anything in the docs that explains. Thank you in advance!
z
Zach Angell
04/02/2021, 1:38 PM
Hi @Matthew Blau
Any
Task
class takes a
max_retries
argument, if you pass
max_retries
to
super().init
, your custom task will use this value
Zach Angell
04/02/2021, 1:40 PM
Copy code
class CustomTask(Task):
def __init__(self, my_arg, **kwargs):
self.prop = my_arg
super().__init__(**kwargs)
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.