Allow to reduce the interval of some cronjobs (#1753)

This commit is contained in:
Raphael Michel
2020-08-19 11:29:53 +02:00
committed by GitHub
parent fbd38fef58
commit c7d1e5d069
4 changed files with 68 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ from pretix.base.models import (
)
from pretix.celery_app import app
from ...helpers.periodic import minimum_interval
from ..signals import periodic_task, quota_availability
@@ -403,6 +404,7 @@ class QuotaAvailability:
@receiver(signal=periodic_task)
@minimum_interval(minutes_after_success=60)
def build_all_quota_caches(sender, **kwargs):
refresh_quota_caches.apply_async()