2017-06-22 25 views
0

我配置了AWS Lambda,以便所有錯誤都轉到DLQ。它默認已經有2次重試,之後它應該將數據推送到DLQ。此前,一切正常,它重試2次,然後它發送數據到DLQ。但是現在,突然之間,它停止了工作。現在,它在拋出異常時正在重試。可能是什麼原因?重試和DLQ推送不適用於AWS Lambda

這是我在哪裏扔故意錯誤代碼的片段。

def lambda_handler(event, context): 
    eventSource = event['Records'][0]['EventSource'] . ## On this line, error will be thrown as the message I am sending does not abide by this format and it is giving KeyError. 
    .... 
    .... 
    .... 

我不知道該怎麼檢查? AWS Lambda重試併發送給DLQ的例外情況是否有限制?

回答