mix phoenix_kit.sync_email_status (phoenix_kit v1.6.16)

View Source

Mix task to manually sync email status by AWS SES message ID.

This task searches for a specific email by message ID and synchronizes its delivery status by fetching events from AWS SQS queues.

Usage

# Sync status for specific message ID
mix phoenix_kit.sync_email_status MESSAGE_ID

# With verbose output
mix phoenix_kit.sync_email_status MESSAGE_ID --verbose

Examples

# Sync email with AWS SES message ID
mix phoenix_kit.sync_email_status "01000189971abc123-fed456-4e89-b012-defg345678hi"

# With detailed logging
mix phoenix_kit.sync_email_status "01000189971abc123-fed456-4e89-b012-defg345678hi" --verbose

What this task does:

  1. Find Email Log: Searches for email log by message_id
  2. Check SQS Queue: Looks for events in main SQS queue
  3. Check DLQ: Looks for events in Dead Letter Queue
  4. Process Events: Updates email status based on found events
  5. Report Results: Shows summary of synchronization

Output

The task will show:

  • Email log found/not found status
  • Number of events found in SQS
  • Number of events found in DLQ
  • Processing results
  • Final email status

Requirements

  • Email system must be enabled
  • AWS SES integration must be configured
  • SQS queue configuration must be set up