Add purge_deferred management command - #183
Open
thorrak wants to merge 2 commits into
Open
Conversation
spookylukey
requested changes
Nov 26, 2025
spookylukey
left a comment
Contributor
There was a problem hiding this comment.
Thank you for the PR, sorry it has taken me so long to look at this. Just one set of changes requested, see below.
Comment on lines
+16
to
+20
| if options["cron"]: | ||
| warnings.warn( | ||
| "purge_deferred's -c/--cron option is no longer necessary and will be removed in a future release", | ||
| DeprecationWarning, | ||
| ) |
Contributor
There was a problem hiding this comment.
If we are adding a new command, is there a need to add a --cron option, only to immediately deprecate it? Can this and the CronArgMixin be removed? The tests could be updated similarly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new
purge_deferredDjango management command which purges any deferred messages.This is intended for a scenario where you have had an authentication/connectivity issue with the mail server, and messages have backed up in the queue that you no longer want to send.
This PR updates the version number to 2.3.3.