Hi team - is there any concept of a task timeout i...
# prefect-community
b
Hi team - is there any concept of a task timeout in prefect currently ?
👀 1
d
You can pass a
timeout
parameter to your task decorator
b
I’m trying to do some html requests through a proxy server, and ocassionally they get stuck. Ideally I’d just like to wrap my task with
timeout=30
and
retry=5
d
That will work! 😄
b
That was easy.
😂 3
d
That second parameter would be
retry_delay
and I believe it accepts a
timedelta
One moment
yes, that’s it
and you can specify a number of attempts to retry with
max_retries
Glad I could help!
b
Thank you very much @Dylan !
😄 1