Как-то CELERY_ALWAYS_EAGER = True не работает в настройках Django

Я поставил CELERY_ALWAYS_EAGER = True в настройках django на тестовой окр.

Но так или иначе я все еще получил это сообщение.

ERROR:cacheback:Unable to trigger task asynchronously - failing over to synchronous refresh
ERROR:cacheback:[Errno 111] Connection refused

на самом деле CELERY_ALWAYS_EAGER = True работает, это то, что я получил из оболочки django.

$ python manage.py shell
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.conf import settings
>>> from celery import Celery
>>> app = Celery()
>>> app.config_from_object('django.conf:settings')
>>> print app.conf.CELERY_ALWAYS_EAGER
True
>>> @app.task()
... def foo():
...   print('FOO')
... 
>>> print foo.delay()
FOO
4ff95b5c-f8bc-412b-ad19-602082aec1e9
>>> 

Есть ли идеи, почему я все еще получаю сообщения об ошибках? Большое спасибо!

0 ответов

Другие вопросы по тегам