From e8afe1c8d5552a45abed8bde5d5e4c7bbaa28a15 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Tue, 14 Aug 2018 10:31:25 +0800 Subject: [PATCH] # up celery cron --- mosqkiller/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mosqkiller/settings.py b/mosqkiller/settings.py index 68885f3..aae86f9 100644 --- a/mosqkiller/settings.py +++ b/mosqkiller/settings.py @@ -209,10 +209,10 @@ CELERY_TIMEZONE = 'Asia/Shanghai' CELERY_BEAT_SCHEDULE = { 'update-daily-statistic': { 'task': 'mosquito.tasks.update_daily_statistic', - 'schedule': crontab(minute='*/1'), + 'schedule': crontab(hour='*/1'), }, 'update-latest-statistic': { 'task': 'mosquito.tasks.update_latest_statistic', - 'schedule': crontab(minute='*/1'), + 'schedule': crontab(hour='*/1'), }, } \ No newline at end of file