https://prefect.io logo
Title
i

Ian Mc Shane

05/31/2022, 3:15 PM
Hi everyone. I am learning how to use Prefect 1.0 at the moment. I am building out a very basic flow and that needs to retry given some condition. ` I started down the path of trying the
raise signals.RETRY
signal but the task ends up going into a tight loop. I decorated the
@Task
with
max_retries
and
retry_delay
but the retry is still repeating rapidly and without any delay. ` Is the
RETRY
signal controlled by the
@Task
decorations
max_retries
and
retry_delay
?
k

Kevin Kho

05/31/2022, 4:04 PM
You shouldn’t have to raise retry manually I think. Try raising an error instead and it should enter the retry loop.
raise ValueError
for example.
a

Anna Geller

05/31/2022, 4:16 PM
Ian, if you are just getting started, you may check out Prefect 2.0
i

Ian Mc Shane

06/01/2022, 7:24 AM
Thank you @Kevin Kho - I will give that a shot.
@Anna Geller - thank you for the info on V1 vs V2... I will talk to the team and see what they say. I initially we were looking for stability.
🙌 1