Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix retrying email notification task #4772

Merged
merged 5 commits into from
Aug 1, 2024
Merged

Conversation

mderynck
Copy link
Contributor

@mderynck mderynck commented Jul 31, 2024

What this PR does

Email tasks are failing and retrying when they use the fallback default notification policy as it does not get saved in the DB. This PR uses the same way as UserNotificationPolicyLogRecord to set that field to null to avoid ValueError("save() prohibited to prevent data loss due to unsaved related object 'notification_policy'."). when that is the case.

Which issue(s) this PR closes

Related to [issue link here]

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • Added the relevant release notes label (see labels prefixed w/ release:). These labels dictate how your PR will
    show up in the autogenerated release notes.

@mderynck mderynck added release:patch PR will be added to "Other Changes" section of release notes pr:no public docs Added to a PR that does not require public documentation updates labels Jul 31, 2024
@mderynck mderynck marked this pull request as ready for review July 31, 2024 22:02
@mderynck mderynck requested a review from a team July 31, 2024 22:02
@mderynck mderynck added this pull request to the merge queue Aug 1, 2024
Merged via the queue into dev with commit 4c1639c Aug 1, 2024
21 checks passed
@mderynck mderynck deleted the mderynck/fix-retrying-email-tasks branch August 1, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates release:patch PR will be added to "Other Changes" section of release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants