This is a hotfix to avoid spamming users with mails. In #647, we've introduced a new UserCleaner that deletes stale users that haven't used MaMpf for too long (6 months). Of course, these users are warned beforehand by means of mails like "Your account will be deleted in 40 days". Unfortunately, some of these mails are still scheduled even though the user was already deleted after 40 days. These jobs will then fail as the user cannot be found anymore. Due to this exception, the mail will be sent multiple times to test if it still doesn't work, thus the user is spammed with mails.
This is just a hotfix and we will definitely investigate why the jobs are enqueued for so long in the first place. A better strategy would be to delete all remaining jobs for a user before deleting their account such that no stale jobs are present in the queue.
What's Changed
- Hotfix: Set retry option to false for UserCleanerJob by @fosterfarrell9 in #715
Full Changelog: v1.14.1...v1.14.2