Register handlers as Celery tasks

This commit is contained in:
Qixiang Wan
2019-11-18 16:54:18 +08:00
committed by mprahl
parent 81d9554af3
commit 9049eea35c
9 changed files with 52 additions and 8 deletions

View File

@@ -21,7 +21,13 @@ class BackendConfiguration(object):
# name in MBS is CELERY_BROKER_URL.
CELERY_BROKER_URL = ""
CELERY_RESULT_BACKEND = ""
CELERY_IMPORTS = []
CELERY_IMPORTS = [
"module_build_service.scheduler.handlers.components",
"module_build_service.scheduler.handlers.modules",
"module_build_service.scheduler.handlers.repos",
"module_build_service.scheduler.handlers.tags",
"module_build_service.scheduler.handlers.greenwave",
]
class TestConfiguration(BackendConfiguration):