This command clears all messages from the dead letter queue. Note: this command will only fetch the first messages available (it will not dump thousands of messages into the terminal). Use this command to investigate why these messages failed to be processed. This command lists the failed messages stored in the dead letter queue. It is also possible to provide the body via the -body="message body here" option. When the command runs, it will prompt for the body of the SQS message. This command can be useful while developing to push sample messages into the queue. It is an alias to serverless logs -function Worker and supports the same options, for example -tail to tail logs live. This command displays the logs of the Lambda "worker" function. ![]() Let's deploy a queue called jobs (with its worker function), as well as a separate function ( publisher) that publishes messages into the queue: The event mapping is configured with ReportBatchItemFailures enabled by default for partial batch failures to work out of the box.Batch processing is disabled by default ( configurable): errors need to be handled properly using partial batch failures.The SQS "Visibility Timeout" setting is configured per AWS recommendations ( more details).Failed messages in the dead letter queue are stored for 14 days (the maximum) to give developers time to deal with them.Messages that still fail to be processed are stored in the SQS dead letter queue. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |