ask/celery — Issue #586: AttributeError: 'NoneType' object has no attribute 'ensure'
Author: mher
Created: 2012-01-12 19:36:49+00:00
State: open

The second call of send_task fails with AttributeError

>>> from celery.execute import send_task
>>> send_task('tasks.add', args=[1,2])

>>> send_task('tasks.add', args=[1,2])
Traceback (most recent call last):
File "", line 1, in
File "/Users/mher/Projects/ask/celery/celery/app/base.py", line 178, in send_task
expires=expires, **options)
File "/Users/mher/Projects/ask/celery/celery/app/amqp.py", line 236, in delay_task
send = connection.ensure(self, self.send, **_retry_policy)
AttributeError: 'NoneType' object has no attribute 'ensure'
>>> import celery
>>> celery.__version__
'2.5.0rc1'
>>>