跳转至

故障排查 / TaskTimeoutException 错误

函数执行过程中发生TaskTimeoutException错误,如:

Text Only
1
2
3
4
5
6
7
8
#1 --------------------
执行函数: demo__demo.test_timeout()

错误堆栈:
Traceback (most recent call last):
  File "demo__demo", line 4, in test_timeout
    time.sleep(100)
worker.tasks.TaskTimeoutException: Task execution takes too much time and has been interrupted by force

发送此错误表示函数执行时间过长而超时,请参考以下文档处理: