Displaying 1 result from an estimated 1 matches for "tx_reaper_work".
Did you mean:
tx_reaper_worker
2007 Dec 30
3
A newbie question regarding BackgroundRb
...to copy the yml
scripts.
Now my backgroundrb.yml looks like
=======
---
port: "22222"
timer_sleep: 60
load_rails: true
environment: 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...