如何使用 resque-web 监控 Coffee-resque 工作人员

发布于 2024-12-22 08:24:34 字数 282 浏览 0 评论 0原文

我用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

想挽留 2024-12-29 08:24:34

我最近提供了一个解决此问题的拉取请求。它已被 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文