Search documentation of phoenix_kit

# mix phoenix_kit.email.process_dlq (phoenix_kit v1.6.19)

View Source

Process accumulated messages from AWS SQS Dead Letter Queue (DLQ).

This task retrieves all messages from the DLQ, processes them through the SQS processor to update email statuses, and optionally deletes successfully processed messages.

## Usage

    mix phoenix_kit.email.process_dlq [--batch-size 10] [--delete-after] [--dry-run]

## Options

- `--batch-size` - Number of messages to process in each batch (default: 10)
- `--delete-after` - Delete successfully processed messages from DLQ (default: false)
- `--dry-run` - Show what would be processed without making changes (default: false)

## Examples

    # Process all DLQ messages without deleting them
    mix phoenix_kit.email.process_dlq

    # Process in small batches and delete successful ones
    mix phoenix_kit.email.process_dlq --batch-size 5 --delete-after

    # See what would be processed (no changes)
    mix phoenix_kit.email.process_dlq --dry-run

## Requirements

- Email system must be enabled
- AWS credentials must be configured
- DLQ URL must be set in settings