Page MenuHomePhabricator

Wikipedia Library - Create cron job for deleting old emails
Closed, ResolvedPublic

Description

The Wikipedia Library is currently storing sent emails from many years ago. This is taking up storage from the database that could be needed elsewhere. Djmail has a management command that can delete old messages (https://bameda.github.io/djmail/#_management_commands). We should create a cron job that runs it every month to only keep the last 100 days of emails.

Event Timeline

Scardenasmolinar changed the task status from Open to In Progress.Nov 23 2023, 3:18 AM
Scardenasmolinar claimed this task.

the cron task doesn't seem to be running of it's own accord. We shelled in an ran the cron manually and it cleared messages as expected, so we need to keep an eye on this and see what is happening.

The command has run successfully. I am moving this to Done.

Screenshot 2023-12-07 at 12.32.06.png (1,225×63 px, 18 KB)