At work, we use BackgroundRb on a server to kick off long running tasks. This runs on a backend server. I wrote some code that can start, stop and manage workers, but noticed that when a task is running, calling a self defined method on the worker object is possible. However, on long running and intensive tasks, the call to this method blocks. The strange thing is that the method is executed, eventhough the task is still running, but the timing of the call seems unpredictable. I haven't looked at the backgroundrb code yet, but in my case using results[] was a better option.
What I'm Doing...
- Chilli Peppers on Spotify!!! http://t.co/HnSfGrJl 2012-04-13
- Will be in Amsterdam the 27th. Anyone up for beers? 2011-12-22
- Will be in the Netherlands from Dec 17 to Jan 2. Beer anyone? 2011-12-09
- In case some of my Belgian friends missed it: Spotify in Belgium! http://t.co/HJxcStfg 2011-11-16
- At Hadoop World with @Spotify #hw2011 2011-11-08
- More updates...
Recent Posts
Categories
Blogroll
Recent Comments
- Building SOAP service in Rails - High Tech Sorcery on Rails and SOAP
- Tiemen on Awesomeness and a broken finger
- Ron van Weverwijk on Awesomeness and a broken finger
- wouter on Only 2 weeks to go..
- Sagar Mhatre on Only 2 weeks to go..
0 Responses to “BackgroundRb and blocking method calls”