还有其他人在使用django-celery保持犹太人区在后台运行时遇到了麻烦吗?

时间:2010-08-12 07:29:19

标签: python django celery

nohup python manage.py celeryd -f queue.log 2>queue.err 1>queue.out &

处理一个请求正常,然后将下一个作业发布到队列的客户端应用程序失败并返回此跟踪。

   tasks.spawn_job.delay(details)

 File "/releases/env/lib/python2.6/site-packages/celery/task/base.py", line 321, in delay
   return self.apply_async(args, kwargs)

 File "/releases/env/lib/python2.6/site-packages/celery/task/base.py", line 337, in apply_async
   return apply_async(self, args, kwargs, **options)

 File "/releases/env/lib/python2.6/site-packages/celery/messaging.py", line 248, in _inner
   return fun(*args, **kwargs)

 File "/releases/env/lib/python2.6/site-packages/celery/execute/__init__.py", line 101, in apply_async
   publisher or publish.close()

 File "/releases/env/lib/python2.6/site-packages/carrot/messaging.py", line 766, in close
   self.backend.close()

 File "/releases/env/lib/python2.6/site-packages/ghettoq/taproot.py", line 188, in close
   for consumer_tag in self._t.consumers.keys():

AttributeError: 'thread._local' object has no attribute 'consumers'

我们正在切换到rabbitMQ,因为它“......只是工作”

1 个答案:

答案 0 :(得分:0)

切换到RabbitMQ可能是一个好主意。但请注意,这是主人修复的错误  ghettoq的分支。