所以我有两台服务器。Resque远程作业
服务器A:有Redis的,红宝石+ resque宝石+耙宝石 服务器B:有Ruby on Rails的+ resque宝石
从服务器BI排队作业到Redis的服务器A服务器A接收到作业:
*** Found job on test
*** got: (Job{test} | TestQueue | [])
*** Running before_fork hooks with [(Job{test} | TestQueue | [])]
*** resque-1.23.1: Forked 10388 at 1362750385
*** Failed to start worker : #<NameError: uninitialized constant TestQueue>
所以我想通了工作需要住在服务器A于是我搬到作业那里。但是,当我从服务器B上排队,我得到如下:
rails console
Loading development environment (Rails 3.2.12)
irb(main):001:0> Resque.enqueue(TestQueue)
NameError: uninitialized constant TestQueue
的唯一方法我没有得到它的工作时,我曾在两个服务器的工作,但理想那远。
如何远程排队排队作业?
哪里TestQueue类服务器A和服务器B – Viren 2013-03-08 17:24:42