Displaying 1 result from an estimated 1 matches for "txreaperwork".
Did you mean:
txreaperworker
2007 Dec 30
3
A newbie question regarding BackgroundRb
...development
host: localhost
database_yml: config/database.yml
acl:
deny: all
allow: localhost 127.0.0.1
order: deny,allow
scheduled_task:
:class: :tx_reaper_worker
:worker_method: :do_work
:trigger_args:
:start: <%= Time.now %>
:repeat_interval: <%= 1.second %
=======
TxReaperWorker is my class which I generated.
=======
class TxReaperWorker < BackgrounDRb::Rails
def do_work(args)
puts "Hello BackgroundRb"
end
end
=======
I started my rails app using
rake backgroundrb:start
script/server
However, I am unable to view the output of "puts" anyw...