diff --git a/rhodecode/lib/celerylib/tasks.py b/rhodecode/lib/celerylib/tasks.py --- a/rhodecode/lib/celerylib/tasks.py +++ b/rhodecode/lib/celerylib/tasks.py @@ -1,6 +1,5 @@ from celery.decorators import task -from celery.task.sets import subtask -from celeryconfig import PYLONS_CONFIG as config + from operator import itemgetter from pylons.i18n.translation import _ from rhodecode.lib.celerylib import run_task, locked_task @@ -12,6 +11,14 @@ from vcs.backends.hg import MercurialRep import json import traceback +try: + from celeryconfig import PYLONS_CONFIG as config +except ImportError: + #if celeryconfig is not present let's just load our pylons + #config instead + from pylons import config + + __all__ = ['whoosh_index', 'get_commits_stats', 'reset_user_password', 'send_email']