Displaying 2 results from an estimated 2 matches for "exampleworker".
Did you mean:
example_worker
2007 May 09
0
Neophyte needs help!
...rsion 0.2.1).
I did a ''generate worker example'', which created an example_worker.rb
file in my ./libs/workers directory.
I fleshed it out so it looks like this (as per the example in the
documentation):
#####################################################################
class ExampleWorker < BackgrounDRb::Worker::RailsBase
def do_work(args)
logger.info(''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''...
2007 May 26
0
New worker not being created
...I recently upgraded to BackgroundRB 0.2.1, but I can''t seem to create new
> workers now. To test things out again with a simple example, I tried
> following the example in the README of the docs.
>
> ./script/generate worker example
>
> my example worker:
>
> class ExampleWorker < BackgrounDRb::Worker::RailsBase
>
> def do_work(args)
> logger.info(''ExampleWorker do work'')
> results[:do_work_time] = Time.now.to_s
> results[:done_with_do_work] ||= true
> end
>
> def other_method
> logger.info('...