Displaying 1 result from an estimated 1 matches for "sework".
Did you mean:
rework
2007 May 31
0
Slave socket problem again
...Currently my configuration is (backgroundrb.yml):
:port: 2000
:rails_env: development
:host: localhost
:protocol: druby
:pool_size: 5
:worker_dir: lib/workers
(backgroundrb_schedules.yml)
sql_scheduler:
:class: :s_e_work
:job_key: :sql_exe
:trigger_args: 5 * * * * * *
Worker code is:
class SEWork < BackgrounDRb::Worker::RailsBase
def do_work(args)
# This method is called in it''s own new thread
begin
script = SqlScript.find(:first, :conditions => [ ''state = ? AND
scheduled_run_at IS NOT NULL AND scheduled_run_at < ? OR'' +...