mirror of
https://github.com/GSA/notifications-api.git
synced 2026-09-06 09:18:26 -04: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,
|
create_encrypted_callback_data,
|
||||||
)
|
)
|
||||||
import pytz
|
import pytz
|
||||||
from app.celery.reporting_tasks import create_nightly_billing # noqa - otherwise task won't start
|
|
||||||
|
|
||||||
|
|
||||||
@worker_process_shutdown.connect
|
@worker_process_shutdown.connect
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ class Config(object):
|
|||||||
CELERY_TIMEZONE = 'Europe/London'
|
CELERY_TIMEZONE = 'Europe/London'
|
||||||
CELERY_ACCEPT_CONTENT = ['json']
|
CELERY_ACCEPT_CONTENT = ['json']
|
||||||
CELERY_TASK_SERIALIZER = '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 = {
|
CELERYBEAT_SCHEDULE = {
|
||||||
'run-scheduled-jobs': {
|
'run-scheduled-jobs': {
|
||||||
'task': 'run-scheduled-jobs',
|
'task': 'run-scheduled-jobs',
|
||||||
|
|||||||
Reference in New Issue
Block a user