跳轉至

故障排查 / TaskTimeout 錯誤

函數執行過程中發生 TaskTimeout 錯誤,如:

Text Only
1
2
3
4
Traceback (most recent call last **IN USER SCRIPT**):
  File "demo__test_timeout", line 5, in test_timeout
    time.sleep(100)
worker.tasks.TaskTimeout: Task execution has taken too much time and has been killed by force

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