Commit Graph
2 Commits
Author SHA1 Message Date
9ff8a5491b Run photos:prune_404s rake task monthly (#5107)
* Run photos:prune_404s task monthly on the 1st of the month

Assuming Heroku Scheduler invokes the task daily, check if today is
the first day of the month before pruning 404 photos. Also add spec to test this behavior.

Co-authored-by: CloCkWeRX <365751+CloCkWeRX@users.noreply.github.com>

* Delete spec/tasks/photos_prune_404s_spec.rb

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-10-26 23:26:38 +10:30
google-labs-jules[bot] 8e74d1796a This rake task iterates through all photos and removes any that have a 404 status on their fullsize_url. This will help to keep the database clean of broken photo references. 2025-08-24 23:17:26 +00:00