Skip to content

Emails 0.1.18: Brevo polling restarts itself when the app boots

Emails 0.1.18 fixes Brevo event polling that could stay stopped across restarts even though it was switched on in the settings.

Brevo polling is a chain of Oban jobs, each scheduling the next. If that chain broke, for example after a crash before the next job was queued or after the jobs table was cleared, nothing started it again, and restarting the app did not help. At boot the module now starts the Brevo chain when Brevo polling is on, the way it already did for SQS. With no active Brevo send profile the job simply does nothing each cycle. The module’s system status also reports Brevo polling next to SQS polling.

Full release notes: Emails 0.1.18

0.1.18 · 27 July 2026

Fixed

  • Brevo event polling no longer stays dead across app restarts when brevo_events_enabled is still on but no Oban job row survived (crash before schedule_next_poll/1, wiped jobs table, etc.). The supervisor now re-seeds the Brevo chain at boot the same way it already re-seeds SQS — via BrevoPollingManager.enable_polling/0 after Oban is ready. Zero active Brevo profiles is fine; the job no-ops each cycle and still records last_polled_at.

Changed

  • PhoenixKit.Modules.Emails.Supervisor.system_status/0 also reports brevo_polling_status (alongside the existing SQS polling_status).
  • Clarified BrevoPollingManager docs: poll_now/0 bypasses only the brevo_events_enabled toggle, not the sender-aware profile gate or Emails.enabled?/0.

Emails 0.1.18. Install or update: {:phoenix_kit_emails, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.