使用Delayed :: Job管理多个作业队列 [英] Use Delayed::Job to manage multiple job queues
问题描述
我想使用Delayed :: Job(或者可能是对我的问题更合适的工作队列)将作业分派到多个后台守护程序。
I want to use Delayed::Job (or perhaps a more appropriate job queue to my problem) to dispatch jobs to multiple background daemons.
我有多个后台具有不同职责的守护程序。每个人都对Rails应用程序中队列中的不同作业感兴趣。是否可以使用Delayed :: Job进行操作,或者是否存在一个更适合此任务的作业队列?
I have several background daemons that carry out different responsibilities. Each one is interested in different jobs in the queue from the Rails app. Is this possible using Delayed::Job, or perhaps there is a different job queue that better fits this task?
推荐答案
从那时起 http://github.com/collectiveidea/delayed_job 已达到v3.0,其中包括命名队列!非常适合简单的分组队列需求。
Since then http://github.com/collectiveidea/delayed_job has reached v3.0 and includes named queues! Excellent for simple grouped queue needs.
这篇关于使用Delayed :: Job管理多个作业队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!