Notification system: how do you prevent sending a user the same notification twice when workers retry?