celery task php,celery worker错误”Received unregistered task of type ‘tasks.add’”解决

在Python开发的分布式任务调度模块celery的worker出现 ”Received unregistered task of type ‘tasks.add’”错误,下面是本人的解决方法。

试玩了一下celery的priodic task,后来遇到了”Received unregistered task of type ‘tasks.add’”的错误,排查这个问题过程有点tricky,记录一下.

错误提示为:

代码如下

[2014-08-30 04:34:14,913: ERROR/MainProcess] Received unregistered task of type 'tasks.add'.

The message has been ignored and discarded.

Did you remember to import the module containing this task?

Or maybe you are using relative imports?

Please see http://bit.ly/gLye1c for more information.

The full contents of the message body was:

{'retries': 0, 'task': 'tasks.add', 'utc': False, 'args': (4, 4), 'expires': None, 'eta': None, 'kwargs': {}, 'id': '841bc21f-8124-436b-92f1-e3b62cafdfe7'}

Traceback (most recent call last):

File "/usr/local/

你可能感兴趣的:(celery,task,php)