https://prefect.io logo
Title
y

YD

12/21/2022, 7:51 AM
Prefect 2 task timeout_seconds looking at https://docs.prefect.io/concepts/tasks/#timeouts it looks like this should be allowed:
@task(timeout_seconds=1)
but I get an error:
TypeError: task() got an unexpected keyword argument 'timeout_seconds'
What is the proper way to set a timeout time for tasks in Prefect 2 ?
1
p

Peyton Runyan

12/21/2022, 11:31 AM
what version of prefect 2 are you on?
y

YD

12/21/2022, 4:53 PM
prefect version: 2.6.5 Python 3.8.5
p

Peyton Runyan

12/21/2022, 5:12 PM
I think this was released in 2.6.7
Latest prefect is 2.7.3
y

YD

12/21/2022, 6:13 PM
I think I had an issue with the later version. but I will try it again
timeout_seconds
works, thanks
do you have any thoughts on my question regarding Sending SMS on task failure - Prefect 2.0 - Plivo ?
p

Peyton Runyan

12/21/2022, 6:27 PM
link?