Displaying 2 results from an estimated 2 matches for "publishworker".
2006 Dec 08
2
trouble using ActiveRecord classes
...xception isn''t raising, it just dies.
My worker class is below, I''ve interspersed log messages throughout to try
to determine where it is dying.
===== publish_worker.rb ========
require ''publication'' # loads my Publication < ActiveRecord::Base model
class PublishWorker < BackgrounDRb::Worker::RailsBase
attr_accessor :publication_id
def do_work(args)
logger.debug("PublishWorker args: #{args.inspect}")
@publication_id = args[:publication_id]
logger.debug("Publication id: #{@publication_id}")
end_date = args[:end_date] |...
2006 Oct 30
3
Question about new results hash
Is it really a hash? As in, can I pass it into a method that a worker is
calling so that, for example, a method in my ActiveRecord that''s
actually doing the work?
Really liking the new code. Does rubyforge or devjavu have the rdocs
anywhere?
--
Joshua Warchol
Code Poet, Zaadz Inc.
http://joshua.zaadz.com/