wereii / lemmy-thumbnail-cleaner

MIT License
11 stars 1 forks source link

LTC deletes all thumbnails #4

Closed romano closed 3 months ago

romano commented 4 months ago

Lemmy Thumbnail Cleaner seems to delete all thumbnails. Environment variables were set to default (3 months, 300 interval, 300 query limit, no delete_on_not_found). Pictrs version 0.5.15, Lemmy version 0.19.4, Postgres version 16-alpine3.20

Attached screenshot (new thumbnails were generated after disabling LTC): ltc_bug

wereii commented 4 months ago

That should not happen, though without logs from the container I can't see how/what could go wrong.
The important bit, is that LTC (funny abbreviation:) ) outputs how many thumbnails can be cleaned at the start:

[2024-06-10T17:47:05Z INFO lemmy_thumbnail_cleaner] Database contains 76 of thumbnails that can be cleaned up

if the number is huge (which depends on the instance traffic) then that would mean some kind of issue with the month filter but that that part is handled by postgres.