跳轉至

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

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