Skip to content

Introduce a nightly maintenance command to handle recurring housekeeping tasks #6590

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

Closed
jeremystretch opened this issue Jun 11, 2021 · 0 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: housekeeping Changes to the application which do not directly impact the end user
Milestone

Comments

@jeremystretch
Copy link
Member

Proposed Changes

Add a new management command (e.g. manage.py housekeeping) intended to be run nightly. This can take care of recurring tasks such as:

  • Deleting expired changelog records
  • Clearing out expired auth sessions
  • Recording usage statistics (for future purposes)

The installation and upgrade documentation will be updated to include creating a cron job to run this command nightly.

Justification

This would allow us to offload the pseudo-random clearing of expired changelog records from the middleware (see #6056), and provide a foundation for similar additional uses in future releases.

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation type: housekeeping Changes to the application which do not directly impact the end user labels Jun 11, 2021
@jeremystretch jeremystretch added this to the v3.0 milestone Jun 11, 2021
@jeremystretch jeremystretch self-assigned this Jun 11, 2021
jeremystretch added a commit that referenced this issue Jun 11, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: housekeeping Changes to the application which do not directly impact the end user
Projects
None yet
Development

No branches or pull requests

1 participant