Increase cron frequency

This commit is contained in:
Kumi 2020-05-25 19:28:34 +02:00
parent 45d8d3e5de
commit b3ebe1f101

View file

@ -2,8 +2,8 @@ from django_celery_beat.models import PeriodicTask, IntervalSchedule
def setup_cron():
schedule, created = IntervalSchedule.objects.get_or_create(
every=1,
period=IntervalSchedule.MINUTES,
every=5,
period=IntervalSchedule.SECONDS,
)
PeriodicTask.objects.get_or_create(