# HG changeset patch # User Mads Kiilerich # Date 2020-11-07 18:49:57 # Node ID ea1c608efa3ab687c8971867a94256358dc3f203 # Parent 341e4bb9e22799f2f52810bf392fc358ba218bac celery: rename celerypylons to more descriptive celery_app This module is all about creating a Celery app. diff --git a/kallithea/config/app_cfg.py b/kallithea/config/app_cfg.py --- a/kallithea/config/app_cfg.py +++ b/kallithea/config/app_cfg.py @@ -33,7 +33,7 @@ from tg import FullStackApplicationConfi import kallithea.lib.locales import kallithea.model.base import kallithea.model.meta -from kallithea.lib import celerypylons +from kallithea.lib import celery_app from kallithea.lib.utils import load_extensions, set_app_settings, set_indexer_config, set_vcs_config from kallithea.lib.utils2 import asbool, check_git_version from kallithea.model import db @@ -136,7 +136,7 @@ def setup_configuration(app): kallithea.DEFAULT_USER_ID = db.User.get_default_user().user_id if asbool(config.get('use_celery')): - kallithea.CELERY_APP = celerypylons.make_app() + kallithea.CELERY_APP = celery_app.make_celery_app() kallithea.CONFIG = config load_extensions(root_path=config['here']) diff --git a/kallithea/lib/celerypylons/__init__.py b/kallithea/lib/celery_app.py rename from kallithea/lib/celerypylons/__init__.py rename to kallithea/lib/celery_app.py