You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Campaign can stay in sending forever if jobs settle before the broadcast link is written #124
ExecuteCampaign enqueues the recipient jobs and only afterwards links the campaign to the broadcast. The cascade that writes final counts back to the campaign requires campaigns.broadcast_id to match and campaigns.status = 'sending'. If every job settles inside the window between enqueue and link, the cascade never matches and nothing else reconciles campaign rows, so the campaign stays sending permanently.
Reported as suspected: the window is small and has not been reproduced.
Where
backend/internal/service/worker.go:75-106 — enqueue then link.
backend/internal/db/campaigns.sql.go:259-268 — the cascade predicate.
Activity
fix(campaign): settle campaigns whose broadcast finishes before linking