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.
Description
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Samwalton9-WMF | T349553 [EPIC] Moderator Tools Maintenance Work | |||
| Resolved | Samwalton9-WMF | T348541 [Epic] Q2 FY 2023-24 Moderator Tools Maintenance Work | |||
| Resolved | • Scardenasmolinar | T350822 Wikipedia Library - Create cron job for deleting old emails |
Event Timeline
Comment Actions
I think you got confused with tasks. This one is still open: https://github.com/WikipediaLibrary/TWLight/pull/1227
Comment Actions
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.
