mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
put import reporting_tasks in config
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user