Skip to content

Commit

Permalink
Add org_id to warning error about large non-persistent broadcasts
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Sep 20, 2024
1 parent 7f00bfe commit 946c87b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/tasks/msgs/send_broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ func createBroadcastBatches(ctx context.Context, rt *runtime.Runtime, oa *models
return nil
}

// TODO remove once we decide whether to not add an actual limit
if bcast.ID == models.NilBroadcastID && len(contactIDs) > 100 {
slog.Error("non-persistent broadcast to more than 100 contacts", "count", len(contactIDs))
slog.Error("non-persistent broadcast to more than 100 contacts", "count", len(contactIDs), "org_id", bcast.OrgID)
}

// batches will be processed in the throttled queue unless we're a single contact
Expand Down

0 comments on commit 946c87b

Please sign in to comment.