forked from CGM_Public/pretix_original
0
src/pretix/base/management/commands/__init__.py
Normal file
0
src/pretix/base/management/commands/__init__.py
Normal file
12
src/pretix/base/management/commands/runperiodic.py
Normal file
12
src/pretix/base/management/commands/runperiodic.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.core.management import call_command
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from ...signals import periodic_task
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Run periodic tasks"
|
||||
|
||||
def handle(self, *args, **options):
|
||||
periodic_task.send(self)
|
||||
call_command('clearsessions')
|
||||
Reference in New Issue
Block a user