We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f808b commit 71ae2bbCopy full SHA for 71ae2bb
internal/manager/pipe.go
@@ -224,7 +224,7 @@ func (p *pipe) cleanup() {
224
}
225
226
// If a running campaign has exhausted subscribers, it's finished.
227
- if c.Status == models.CampaignStatusRunning {
+ if c.Status == models.CampaignStatusRunning || c.Status == models.CampaignStatusScheduled {
228
c.Status = models.CampaignStatusFinished
229
if err := p.m.store.UpdateCampaignStatus(p.camp.ID, models.CampaignStatusFinished); err != nil {
230
p.m.log.Printf("error finishing campaign (%s): %v", p.camp.Name, err)
0 commit comments