Skip to content

Commit 71ae2bb

Browse files
committed
Fix scheduled campaigns not finishing. Closes #2480.
1 parent 86f808b commit 71ae2bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/manager/pipe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func (p *pipe) cleanup() {
224224
}
225225

226226
// If a running campaign has exhausted subscribers, it's finished.
227-
if c.Status == models.CampaignStatusRunning {
227+
if c.Status == models.CampaignStatusRunning || c.Status == models.CampaignStatusScheduled {
228228
c.Status = models.CampaignStatusFinished
229229
if err := p.m.store.UpdateCampaignStatus(p.camp.ID, models.CampaignStatusFinished); err != nil {
230230
p.m.log.Printf("error finishing campaign (%s): %v", p.camp.Name, err)

0 commit comments

Comments
 (0)