Skip to content

Commit 82d8a1e

Browse files
committed
Change cron to run every hour
1 parent 60a1194 commit 82d8a1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

captcha_api/celery_worker.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
def setup_periodic_tasks(sender, **kwargs):
1313
# Executes every hour the delete old captchas task
1414
sender.add_periodic_task(
15-
crontab(hour="*/1"),
15+
crontab(minute=0, hour="*/1"),
1616
delete_old_captchas.s(),
1717
)

0 commit comments

Comments
 (0)