From 20ac8eaddac866ee36ca0866951505559f9bc355 Mon Sep 17 00:00:00 2001 From: youngS Date: Thu, 4 Nov 2021 15:37:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/fir_ser/settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fir_ser/fir_ser/settings.py b/fir_ser/fir_ser/settings.py index b943b2e..1e7923f 100644 --- a/fir_ser/fir_ser/settings.py +++ b/fir_ser/fir_ser/settings.py @@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/3.0/ref/settings/ import os +from celery.schedules import crontab + from config import * # Build paths inside the project like this: os.path.join(BASE_DIR, ...) @@ -396,7 +398,8 @@ CELERY_BEAT_SCHEDULE = { }, 'auto_check_ios_developer_active_job': { 'task': 'api.tasks.auto_check_ios_developer_active_job', - 'schedule': SYNC_CACHE_TO_DATABASE.get("auto_check_ios_developer_active_times"), + # 'schedule': SYNC_CACHE_TO_DATABASE.get("auto_check_ios_developer_active_times"), + 'schedule': crontab(hour=1, minute=1), 'args': () }, # 'start_api_sever_do_clean': {