Hi everyone. I am learning how to use Prefect 1.0 ...
# prefect-community
i
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
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
Ian, if you are just getting started, you may check out Prefect 2.0
i
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