search for: bar_work

Displaying 5 results from an estimated 5 matches for "bar_work".

Did you mean: artwork
2008 Feb 02
6
Suspended start of task not suspended
Hi I thought this should suspend the task by 1 minute, but it starts immediately: MiddleMan.ask_work( :worker => :bar_worker, :worker_method => :test_method, :trigger_args => { :start => (Time.now + 1.minute)}) Is the start argument not allowed in the new backgroundrb (mine is at rev HEAD (=314))? What can I do about this? I really need to suspend starting the task as I want the client to start the tri...
2007 Apr 04
0
autostart
Hi, Does backgroundrb 0.2.1 support autostart? I''ve tried to set up autostart by adding something like the following in backgroundrb.yml: autostart: 1: class: bar_worker args: '''' However, that does not seem to work. I also tried the scheduling mechanism like this in backgroundrb_schedules.yml: bar: :class: :bar_worker :job_key: :bar1 :trigger_args: 0 * * * * * * This works, but after around 30 to 40 mins, the scheduler will...
2007 Dec 22
0
[Fwd: Re: what happened to get_worker?]
...oticed that the >> "get_worker" method is gone. I am trying to create multiple instances of >> the same worker and retrieve the status of them using the job key: >> >> To create the worker, I do: >> >> @worker = MiddleMan.new_worker(:worker => :bar_worker, >> :worker_method => :echo_value, >> :job_key => @job_key, >> :data => {:param1 => ''val1'',:param2 => ''val2'' }) >> >> >> To retrieve the worker, I have tried: >> >> @...
2007 Dec 21
7
Using my models
I''m working on upgrading my app to the latest version of backgroundrb. Everything went find until I tried to execute my tasks. Here is my simple worker for testing: class MscWorker < BackgrounDRb::MetaWorker set_worker_name :msc_worker def create(args = nil) # this method is called, when worker is loaded for the first time end # Send a message to everyone def
2007 Nov 14
7
BackgrounDRb version 1.0RC1 available now
...add_periodic_timer(5) { say_hello } end Above snippet would register the proc for periodic execution at every 5 seconds. === Code Install the plugin, and run setup task. Create a worker, using worker generator. ./script/generatr worker bar You will have a bar_worker.rb in your RAILS_ROOT/lib/workers/( called WORKER_ROOT henceforth ). Generated code will look like this: class BarWorker < BackgrounDRb::MetaWorker set_worker_name :bar_worker def create # this method is called, when worker is loaded for the first time puts "start...