Repository navigation
v0.6.4 — per-recipient queue, live progress, logs filters/CSV
What's new
Per-recipient broadcast queue with retries (#41)
Broadcasts and scheduled campaigns no longer run in a single goroutine that loses everything on restart. Each recipient is enqueued as a row in a new broadcast_jobs table; five worker goroutines drain it concurrently using SELECT … FOR UPDATE SKIP LOCKED.
- Transient SMTP errors (4xx, network, DNS) reschedule the job with exponential backoff (30s → 2m → 8m → 30m → 1h), capping at five attempts before the recipient is marked
failed. - SMTP 5xx bounces are not retried — they are tagged
bouncedand the recipient is added to the suppression list. - A backend restart mid-broadcast resets jobs that were
sendingtoretryso sending resumes from where it left off with no duplicate sends and none silently dropped.
Live progress everywhere
- The Newsletters list shows
sent_count/failed_countupdating every five seconds while a campaign is insending, instead of jumping from0/0to the final number at the end. - Same for the Broadcasts tab progress bars.
- New "Broadcasts in flight" panel on Pro Analytics: appears at the top of the dashboard whenever at least one broadcast is sending, with progress bar, elapsed time, and per-status counters.
Email Logs filters and CSV export (#44)
- Status filter is now a row of clickable chips (Sent / Failed / Bounced / Suppressed) with status-tinted highlight.
- New Template dropdown to filter logs to a single template's sends.
- New Export CSV button (top right of Logs) downloads every row matching the active filters via a new
GET /api/v1/projects/{id}/logs/export.csvendpoint.
Other
- Native date pickers across the app now render dark mode in Chromium and Firefox.
Fixed
/healthno longer kills the container on transient Postgres latency. v0.6.3 introduced a synchronous 2-secondPingContexton every/healthcall. When Postgres took >2s for any reason, healthcheck failed five times in a row and the orchestrator killed the container — only to start a new one with the same problem. The endpoint is now backed by a background goroutine that pings Postgres every 10s with a 5s timeout;/healthreads an atomic last-success timestamp and returns503only if no successful ping has happened in the last 60 seconds.- Newsletter shown as
sentwith213/0immediately. With the new queue,EmailService.Broadcastreturns in milliseconds, so the campaign worker — which used to mark the campaign assentwith the upfront recipient count — claimed the campaign was finished before any recipient had been sent to. Campaigns now stay insending, linked to their broadcast via a newcampaigns.broadcast_idFK; the broadcast worker cascades realsent_count/failed_countback when the queue drains.
New troubleshooting docs
A new section in Troubleshooting → Docker Swarm / Dokploy documents a recurring "all services on the same host stop talking to each other" pattern caused by accumulated dead containers and orphan services confusing the Docker Swarm DNS resolver. Includes diagnostic commands and a safe cleanup procedure.
Upgrade notes
- Two new migrations (
20260508010000_add_broadcast_jobs,20260508020000_link_campaigns_to_broadcasts) apply automatically on container start. No manual steps. - No breaking API changes. The
/logsendpoint accepts new optional query parameters (template_id,q); existing callers continue to work unchanged. - Existing campaigns marked
sentbefore this release stay as-is; only campaigns scheduled after the upgrade use the new sending → broadcast → completed flow.
Full changelog: https://github.com/Arkhe-Systems/senddock/blob/main/CHANGELOG.md