Same campaign could be sent twice (scheduler vs manual send) #11
Labels
No labels
bug
dependencies
documentation
feature
phase-summary
security
testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
vmanne-poc/Postak#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.