Files
bugsink/files/management/commands/vacuum_files.py
Klaas van Schelven 99f782f4e3 add vacuum_files command
Fix #129
2025-07-17 09:05:16 +02:00

11 lines
368 B
Python

from django.core.management.base import BaseCommand
from files.tasks import vacuum_files
class Command(BaseCommand):
help = "Kick off (sourcemaps-)files cleanup by vacuuming old entries."
def handle(self, *args, **options):
vacuum_files.delay()
self.stdout.write("Called vacuum_files.delay(); the task will run in the background (snapea).")