mix phoenix_kit.fix_missing_events (phoenix_kit v1.6.15)

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 ID
mix phoenix_kit.fix_missing_events --log-id 95

Options

  • --dry-run - Show missing events without creating them
  • --log-id - Fix specific log ID 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-id 95