Commit d275049
[ENG-11791][ENG-11793] Update model to pre-calculate and sort recipients; rework campaign workflow (#11825)
* Refactor notification campaign logic: create recipients in batches, add run_id to models, and improve filtering by activity score
* Update notification campaign logic
* Update sendgrid bulk
* Handle email sending errors in send_campaign_batch: log exceptions and update recipient statuses
* Improve error logging
---------
Co-authored-by: antkryt <ant.krytskyi@gmail.com>1 parent 4fd95a0 commit d275049
4 files changed
Lines changed: 169 additions & 148 deletions
File tree
- admin/notifications
- osf
- email
- migrations
- models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| |||
0 commit comments