Files
bugsink/files/management/commands/vacuum_files.py
2026-01-06 21:39:33 +01:00

11 lines
369 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 (snappea).")