还有其他人在使用 django-celery 保持 ghettoq 在后台运行时遇到困难吗?
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,因为它“......正常工作”
nohup python manage.py celeryd -f queue.log 2>queue.err 1>queue.out &
Handles one request fine, then the client app posting the next job to the queues fails with this traceback.
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'
We are switching to rabbitMQ, since it "...just works"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
切换到 RabbitMQ 可能是一个好主意。但请注意,这是 master 中修复的错误
贫民窟的分支。
Switching to RabbitMQ is probably a good idea. But note that this is a bug fixed in the master
branch of ghettoq.