> Two things:
> 
> -I went through your tutorial and documentation but I couldn't figure 
> out how to start workers on load. I thought it was via 
> background_schedules.yml but on start it didn't run.

Elaboration:

|#background_schedules.yml
|update_f:
|        :class:  :update_frogs_worker
|        :job_key:  :schedule_test
|        :worker_method:  :dailyUpdate
|        :worker_method_args:  "x"
|        :trigger_type:  :cron_trigger
|        :trigger_args:  "1 * * * * * *"

|#lib/workers/update_frogs_worker.rb
|require 'open-uri'
|require 'rubygems'
|require 'net/http'
|require 'pp'
|class UpdateFrogsWorker < BackgrounDRb::Worker::RailsBase
|        def do_work(args)
|        end
|        def dailyUpdate(args)
|                @@frogs = Array.new
|                @sub = Subscriber.find(4) #rails model
|                @@frogID = @sub.domainID
|                getFrogs getBody(@@frogsURL + @@frogID)
|                oldFrogs = Array.new
|                logger.info('Got ' + getFrogs.size.to_s + ' frogs')
|                @@frogs.each{|f| oldFrogs << f[0]
|                        logger.info('pushing ' + f[0] + 'into oldFrogs array')
|                }
|                @sub.frogs.each{|f| curFrogs << f.id
|                        logger.info('pushing ' + f.domainID + 'into newFrogs array')
|                }
|                diff = Array.new
|                diff = oldFrogs - curFrogs
|                diff.each{|d| logging.info("Diff:" + d)}
|        end
|end

-- 
Posted via http://www.ruby-forum.com/.