##// END OF EJS Templates
celery: Reorder celery imports to fix case where celery tasks were being...
dan -
r628:4d980275 default
parent child Browse files
Show More
@@ -34,11 +34,16 b' from pylons.configuration import PylonsC'
34 from pylons.error import handle_mako_error
34 from pylons.error import handle_mako_error
35 from pyramid.settings import asbool
35 from pyramid.settings import asbool
36
36
37 # don't remove this import it does magic for celery
37 # ------------------------------------------------------------------------------
38 from rhodecode.lib import celerypylons # noqa
38 # CELERY magic until refactor - issue #4163 - import order matters here:
39 from rhodecode.lib import celerypylons # this must be first, celerypylons
40 # sets config settings upon import
39
41
40 import rhodecode.lib.app_globals as app_globals
42 import rhodecode.integrations # any modules using celery task
43 # decorators should be added afterwards:
44 # ------------------------------------------------------------------------------
41
45
46 from rhodecode.lib import app_globals
42 from rhodecode.config import utils
47 from rhodecode.config import utils
43 from rhodecode.config.routing import make_map
48 from rhodecode.config.routing import make_map
44 from rhodecode.config.jsroutes import generate_jsroutes_content
49 from rhodecode.config.jsroutes import generate_jsroutes_content
@@ -39,7 +39,6 b' from routes.middleware import RoutesMidd'
39 import routes.util
39 import routes.util
40
40
41 import rhodecode
41 import rhodecode
42 import rhodecode.integrations # do not remove this as it registers celery tasks
43 from rhodecode.config import patches
42 from rhodecode.config import patches
44 from rhodecode.config.routing import STATIC_FILE_PREFIX
43 from rhodecode.config.routing import STATIC_FILE_PREFIX
45 from rhodecode.config.environment import (
44 from rhodecode.config.environment import (
General Comments 0
You need to be logged in to leave comments. Login now