We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0867265 + 99a3815 commit 6531084Copy full SHA for 6531084
notifications/tasks.py
@@ -33,6 +33,11 @@ def safe_render_notification(notifications, email_task):
33
email_task.error_message = f'Error rendering notification {notification.id}: {str(e)} \n'
34
email_task.save()
35
failed_notifications.append(notification.id)
36
+ # Mark notifications that failed to render as fake sent
37
+ # Use 1000/12/31 to distinguish itself from another type of fake sent 1000/1/1
38
+ log_message(f'Error rendering notification, mark as fake sent: [notification_id={notification.id}]')
39
+ notification.sent = datetime(1000, 12, 31)
40
+ notification.save()
41
continue
42
43
rendered_notifications.append(rendered)
0 commit comments