[Backgroundrb-devel] nil.send_request = Incorrect worker name?

hemant gethemant at gmail.com
Tue May 27 22:30:55 EDT 2008


On Wed, May 28, 2008 at 7:04 AM, Andy Watts <andywatts at yahoo.com> wrote:
> Hi,
>
> Would greatly appreciate some help with this.
> Is the following error caused by an incorrect worker name?
>
> You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.send_request
> /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:44:in
> `ask_worker'
>
> Here's what I'm doing in my rails console.
>
> MiddleMan.new_worker(:worker => :foo_worker, :job_key => '1')
> worker = MiddleMan.worker(:worker => :foo_worker, :job_key => '1')
> worker.bar()
>
>
> Querying all workers shows the foo_worker_1 is there..
>>> pp MiddleMan.query_all_workers
> {:type=>:all_worker_status}
> {:log_worker=>nil,
>  :foo_worker_1=>{:rand=>679}}
>
> I'm using rails 2.02, Packet 0.1.5 and Chronic 0.2.3.
>
>
> I tried the mainline git version but got this error.  It needs a newer
> version of Packet?
> `load_missing_constant': uninitialized constant Packet::BinParser
> (NameError)
>

Yeah, it does need newer version of packet. Can you try this ?

http://gnufied.org/2008/05/21/bleeding-edge-version-of-backgroundrb-for-better-memory-usage/


More information about the Backgroundrb-devel mailing list