Skip to content

Commit

Permalink
App: Backend argument must also set CELERY_RESULT_BACKEND config
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Jul 4, 2014
1 parent 854379d commit 9a21a06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion celery/app/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def __init__(self, main=None, loader=None, backend=None,
self.clock = LamportClock()
self.main = main
self.amqp_cls = amqp or self.amqp_cls
self.backend_cls = backend or self.backend_cls
self.events_cls = events or self.events_cls
self.loader_cls = loader or self.loader_cls
self.log_cls = log or self.log_cls
Expand Down Expand Up @@ -161,6 +160,8 @@ def __init__(self, main=None, loader=None, backend=None,
self._preconf = changes or {}
if broker:
self._preconf['BROKER_URL'] = broker
if backend:
self._preconf['CELERY_RESULT_BACKEND'] = backend
if include:
self._preconf['CELERY_IMPORTS'] = include

Expand Down

0 comments on commit 9a21a06

Please sign in to comment.