Same campaign could be sent twice (scheduler vs manual send) #11

Closed
opened 2026-10-14 23:16:22 -04:00 by vmanne-poc · 0 comments
Owner

Problem: the scheduler and a manual "Send" (or two clicks) could both pass the "not yet sent" check and deliver the same campaign twice.

Fix: sending claims the campaign with a conditional update (DRAFT/SCHEDULED -> SENDING); only one caller can win. Unschedule uses the same pattern.

Tests: e2e "refuses to send or edit a campaign that was already sent" and "dispatches due scheduled campaigns" (second tick sends nothing).

Fixed in v0.7.0.

**Problem:** the scheduler and a manual "Send" (or two clicks) could both pass the "not yet sent" check and deliver the same campaign twice. **Fix:** sending claims the campaign with a conditional update (DRAFT/SCHEDULED -> SENDING); only one caller can win. Unschedule uses the same pattern. **Tests:** e2e "refuses to send or edit a campaign that was already sent" and "dispatches due scheduled campaigns" (second tick sends nothing). Fixed in `v0.7.0`.
vmanne-poc 2026-10-14 23:16:22 -04:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vmanne-poc/Postak#11
No description provided.