Increase cron frequency
This commit is contained in:
parent
45d8d3e5de
commit
b3ebe1f101
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue