You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The send_monthly_alerts command contains logic to avoid re-sending alerts which have already been sent. However this works by checking whether the user has been send any alerts for the current month, rather than whether they've been sent an alert for the specific bookmark:
This means that if some, but not all, of a user's alerts get sent successfully then subsequent runs of the command will never try to resend the failed ones.
There's no way to fix this without a db migration because the current EmailMessage object has no link back to its source bookmark object:
The
send_monthly_alerts
command contains logic to avoid re-sending alerts which have already been sent. However this works by checking whether the user has been send any alerts for the current month, rather than whether they've been sent an alert for the specific bookmark:openprescribing/openprescribing/frontend/management/commands/send_monthly_alerts.py
Lines 108 to 111 in b9f2afe
This means that if some, but not all, of a user's alerts get sent successfully then subsequent runs of the command will never try to resend the failed ones.
There's no way to fix this without a db migration because the current
EmailMessage
object has no link back to its source bookmark object:openprescribing/openprescribing/frontend/models.py
Lines 999 to 1007 in b9f2afe
The text was updated successfully, but these errors were encountered: