From 378feda60323506c4f8196e3246fdd82e4b2bb05 Mon Sep 17 00:00:00 2001 From: venusbb Date: Wed, 21 Mar 2018 10:39:00 +0000 Subject: [PATCH] put import reporting_tasks in config --- app/celery/scheduled_tasks.py | 1 - app/config.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/celery/scheduled_tasks.py b/app/celery/scheduled_tasks.py index a3494629c..d863dda19 100644 --- a/app/celery/scheduled_tasks.py +++ b/app/celery/scheduled_tasks.py @@ -70,7 +70,6 @@ from app.celery.service_callback_tasks import ( create_encrypted_callback_data, ) import pytz -from app.celery.reporting_tasks import create_nightly_billing # noqa - otherwise task won't start @worker_process_shutdown.connect diff --git a/app/config.py b/app/config.py index a69f61c68..febce73c4 100644 --- a/app/config.py +++ b/app/config.py @@ -161,7 +161,7 @@ class Config(object): CELERY_TIMEZONE = 'Europe/London' CELERY_ACCEPT_CONTENT = ['json'] CELERY_TASK_SERIALIZER = 'json' - CELERY_IMPORTS = ('app.celery.tasks', 'app.celery.scheduled_tasks') + CELERY_IMPORTS = ('app.celery.tasks', 'app.celery.scheduled_tasks', 'app.celery.reporting_tasks') CELERYBEAT_SCHEDULE = { 'run-scheduled-jobs': { 'task': 'run-scheduled-jobs',