mix phoenix_kit.fix_missing_events (phoenix_kit v1.7.71)

Copy Markdown View Source

Finds and fixes email logs with missing bounce/complaint/reject events.

This task scans the email logs table for records that have a bounce/complaint/reject status but are missing the corresponding EmailEvent record in the timeline.

Usage

# Fix all missing events
mix phoenix_kit.fix_missing_events

# Dry run (show what would be fixed without making changes)
mix phoenix_kit.fix_missing_events --dry-run

# Fix specific log by UUID
mix phoenix_kit.fix_missing_events --log-uuid 018f1234-5678-7890-abcd-ef1234567890

Options

  • --dry-run - Show missing events without creating them
  • --log-uuid - Fix specific log UUID only
  • --help - Show this help

Examples

# Find and fix all missing events
mix phoenix_kit.fix_missing_events

# Check what would be fixed
mix phoenix_kit.fix_missing_events --dry-run

# Fix specific email log
mix phoenix_kit.fix_missing_events --log-uuid 018f1234-5678-7890-abcd-ef1234567890