put import reporting_tasks in config

This commit is contained in:
venusbb
2018-03-21 10:39:00 +00:00
parent cf019864e2
commit 378feda603
2 changed files with 1 additions and 2 deletions

View File

@@ -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

View File

@@ -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',