# A question about backgroundrb

**URL:** <https://www.ruby-forum.com/t/a-question-about-backgroundrb/157861>\
**Category:** Rails\
**Created:** [January 16, 2009, 2:15am UTC](https://www.ruby-forum.com/t/a-question-about-backgroundrb/157861 "2009-01-16T02:15:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![youhaodeyi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b9bd4f/32.png) [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Post date:** [January 16, 2009, 2:15am UTC](https://www.ruby-forum.com/t/a-question-about-backgroundrb/157861/1 "2009-01-16T02:15:51Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![youhaodeyi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/b9bd4f/32.png) [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Post date:** [January 21, 2009, 2:02am UTC](https://www.ruby-forum.com/t/a-question-about-backgroundrb/157861/2 "2009-01-21T02:02:43Z")

</div>

Can anyone help me on this?
