知道 resque 工人何时完成工作 [英] Knowing when resque worker had completed job

查看:37
本文介绍了知道 resque 工人何时完成工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与 Resque-worker(5 名工人)一起做一些工作.现在,当这项工作完成/完成时,我想触发另一个工作人员处理存储在数据库中的前一个工作人员的数据.这样做最合适的方法是什么?

I am performing some job with Resque-worker (5 workers). Now, when this job is completed/done I want to trigger another worker which processes the data previous worker stored in db. What would be the most appropriate method of doing this?

推荐答案

我不确定这是否有任何帮助,但是您是否查看过 resque-status gem?这样您就可以跟踪给定作业的状态,以查看它何时完成.但是我担心没有自动触发功能来启动新工人.

I'm not sure if this is of any help, but have you had a look at the resque-status gem? That way you can track a given jobs' status, to see when it is completed. But I'm affraid there are no auto-trigger functionality, to start new workers.

这篇关于知道 resque 工人何时完成工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆