BackgroundRb and blocking method calls

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.

0 Responses to “BackgroundRb and blocking method calls”


  1. No Comments

Leave a Reply