Displaying 2 results from an estimated 2 matches for "sample_worker".
Did you mean:
  example_worker
  
2008 Apr 04
5
First call to worker method doesn''t work
I have a worker as follows:
class SampleWorker < BackgrounDRb::MetaWorker
  set_worker_name :sample_worker
  def create(args = nil)
    # this method is called, when worker is loaded for the first time
  end
  def my_method
    # Deliver test e-mail message
    Notifications.deliver_message(1, "DM")
  end
end
I have a rails controller that calls the following code:
    worker = MiddleMan.wo...
2007 Nov 02
10
pre-release version of backgroundrb available now from svn
...pts, but you should copy "backgroundrb" file
from script directory of plugin to script directory of rails. You
should also config "backgroundrb.yml" file from config directory of
plugin to config directory of rails root.
There is one sample worker available in
BACKGROUNDRB_ROOT/sample_worker directory.
There is also a sample client available.
Currently, passing of ActiveRecord objects is not supported. Although,
We can do that, but in most situations, passing ''id'' of object is
enough i thought. Also, you may encounter some bugs when you are
passing large objects arou...