如何使用 resque-web 监控 Coffee-resque 工作人员
我用coffee-resque创建了一些worker,并尝试使用resque-web的ruby版本查看worker,但只看到间歇性的worker闪进闪出。
我注意到咖啡风格在暂停时会取消对工人的追踪。这是预期的行为吗?这使得 resque web 只列出闪烁的间歇性工作人员,并且当他们出现时,他们总是处于等待状态,即使那是他们正在处理的时候。
我做错了吗?还是有建议的方法来监控工作队列?
另外,如果工作进程失败并且在退出时没有进行优雅的取消跟踪,是否有办法清理 redis 中不活动的孤立工作密钥?
I created some workers with coffee-resque and was trying to view workers using the ruby version of resque-web and only saw intermittent workers flash in and out.
I noticed that coffee-resque untracks workers while paused. Is that the intended behavior? This made it so that resque web only listed flashing intermittent workers and they always had a status of waiting when they did appear, even though that was when they were processing.
Am I doing it wrong or is there a suggested way of monitoring the worker queues?
Also, is there a way to clean up the inactive orphaned worker keys in redis if the worker process failed and didn't do a graceful untrack on exit?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最近提供了一个解决此问题的拉取请求。它已被 Coffee-resque 接受并发布了新版本。
https://github.com/technoweenie/coffee-resque/issues/17
此修复已作为 0.1.6 发布。
I recently provided a pull request that fixed this issue. It has been accepted into coffee-resque and a new version was released.
https://github.com/technoweenie/coffee-resque/issues/17
This fix was released as 0.1.6.