ask/celery — Issue #499: Setting 'CELERY_SEND_TASK_SENT_EVENT = True' & 'CELERY_TASK_PUBLISH_RETRY_POLICY = True' throws TypeError
Author: ankurchopra87
Created: 2011-10-11 15:21:55+00:00
State: open

The following error was produced when using Celery v2.3.3 with the setting

CELERY_SEND_TASK_SENT_EVENT = True
CELERY_TASK_PUBLISH_RETRY_POLICY = True

Error:

TypeError at /phyzyx/mesh-generator/

ensure() argument after ** must be a mapping, not bool

Possible fix:

change line 234 in celery/app/amqp.py
from

send = connection.ensure(self, self.send, **_retry_policy)

To:

send = connection.ensure(self, self.send, _retry_policy)