Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想自动触发 resque worker。 通常的方式是我们调用resque操作
klass = Resque.reserve(:goutham_queue) klass.perform if klass.respond_to? :perform
有没有办法在 resque 队列中有项目时自动触发工作人员。
除了 resque 之外,还有一个系统可以实现基于事件的触发(事件是队列中的新条目)......而不是用恶魔间隔队列。
您可以在以下博客文章中找到有关自动缩放 resque 工作者的有用信息。
自动缩放 resque 工作者
它是为 heroku 编写的,只需更改操作即可。