Skip to content

Commit

Permalink
Log error if marking event fire as fired fails
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jul 19, 2021
1 parent 91fd406 commit 1113a33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/tasks/campaigns/fire_campaign_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ func (t *FireCampaignEventTask) Perform(ctx context.Context, rt *runtime.Runtime
if len(contactMap) > 0 {
rc := rp.Get()
for _, failed := range contactMap {
marker.RemoveTask(rc, campaignsLock, fmt.Sprintf("%d", failed.FireID))
rerr := marker.RemoveTask(rc, campaignsLock, fmt.Sprintf("%d", failed.FireID))
if rerr != nil {
log.WithError(rerr).WithField("fire_id", failed.FireID).Error("error unmarking campaign fire")
}
}
rc.Close()
}
Expand Down

0 comments on commit 1113a33

Please sign in to comment.