知道救助工人何时完成工作 [英] Knowing when resque worker had completed job
本文介绍了知道救助工人何时完成工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在与Resque-worker(5名工人)一起工作。现在,当这项工作完成/完成时,我想触发另一个工作程序,该工作程序处理先前存储在db中的数据。
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
宝石吗?
这样,您可以跟踪给定作业的状态,以查看完成时间。但我深感没有自动触发功能来启动新工作人员。
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.
这篇关于知道救助工人何时完成工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文