I use backgroundrb to run task in background. But when I invoke a worker
defined in backgroundrb, I will get this error:
can''t dump TCPSocket
vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_connection.rb:72:in
`dump''
vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_connection.rb:72:in
`dump_object''
vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_connection.rb:86:in
`ask_work''
vendor/plugins/backgroundrb/lib/backgroundrb/rails_worker_proxy.rb:86:in
`send''
vendor/plugins/backgroundrb/lib/backgroundrb/rails_worker_proxy.rb:86:in
`invoke_on_connection''
vendor/plugins/backgroundrb/lib/backgroundrb/rails_worker_proxy.rb:72:in
`run_method''
vendor/plugins/backgroundrb/lib/backgroundrb/rails_worker_proxy.rb:25:in
`method_missing''
I am sure that the backgroundrb server is start. I use these code to
invoke this worker:
make_view_job_key=MiddleMan.worker(:worker=>:make_view_worker,:worker_key=>''mk_view_key'')
make_view_worker=MiddleMan.worker(:make_view_worker,make_view_job_key)
make_view_worker.async_make_view
Can anyone help me on this?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---