Displaying 1 result from an estimated 1 matches for "publish_work".
Did you mean:
publish_worker
2006 Dec 08
2
trouble using ActiveRecord classes
...by ActiveRecord model classes.
The bizarre thing is that worker just stops at the point accessing the
database connection. An exception 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}")
@publicat...