跳轉到

故障排查 / 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

傳送此錯誤表示函式執行時間過長而超時,請參考以下文件處理: