search for: arg_method

Displaying 4 results from an estimated 4 matches for "arg_method".

Did you mean: api_method
2006 Oct 30
11
BackgrounDRb 0.2.0 Release! Complete rewrite.
...+ 5.seconds, :end => Time.now + 10.minutes, :repeat_interval => 30.seconds } The cron trigger uses a similar syntax to cron found on UNIX systems: MiddleMan.schedule_worker( :class => simple_class, :job_key => :schedule_test, :worker_method => :arg_method, :worker_method_args => "my argument to arg_method", :trigger_args => "0 15 10 * * * *" ) Also note that when the server starts up, you will see 3 processes running. One of the is the MiddleMan server, one is the results worker and one is the logger worker...
2006 Dec 01
2
passing arguments to worker method
...i just started using backgroundrb and i really like it a lot so far. I finally succeeded in setting up version 0.21 and the examples from the readme run fine. Now i do not want to create and delete my worker anytime i want it to do something but call repeatedly a method with arguments. There is a arg_method defined in the readme so i guess this is a feasible way to procede. Unfortunatly i could not find the syntax to pass args to such a method. I hope this is not too stupid a question and you excuse my BASE. Also i would like to know how to determine the version of backgroundrb. I found it rather irr...
2006 Oct 30
1
new BackgroundRB
...=> 30.seconds > > } > > > > The cron trigger uses a similar syntax to cron found on UNIX systems: > > > > MiddleMan.schedule_worker( > > :class => simple_class, > > :job_key => :schedule_test, > > :worker_method => :arg_method, > > :worker_method_args => "my argument to arg_method", > > :trigger_args => "0 15 10 * * * *" > > ) > > > > > > Also note that when the server starts up, you will see 3 processes > > running. > > One of the is...
2007 May 09
0
Neophyte needs help!
...9;'ExampleWorker do work'') results[:do_work_time] = Time.now.to_s results[:done_with_do_work] ||= true end def other_method logger.info(''other_method in ExampleWorker called'') results[:extra_data] = "Just a plain old string" end def arg_method(arg) end end ExampleWorker.register ##################################################################### Next, I created a ''backgroundrb_example'' file under ./script. It looks like this: ##################################################################### #!/usr/bin/env ru...