def set_worker_name(name)
      if @worker_name
        raise ArgumentError, "cannot change worker name"
      else
        if name and !name.empty?
          @worker_name = name.to_sym
          Woodhouse::MixinRegistry.register self
        end
      end
    end
def set_worker_name(name)
      if @worker_name
        raise ArgumentError, "cannot change worker name"
      else
        if name and !name.empty?
          @worker_name = name.to_sym
          Woodhouse::MixinRegistry.register self
        end
      end
    end
Sets the name for this worker class if not already set (i.e., if it's
 an anonymous class). The first time the name for the worker is set,
 it becomes registered with MixinRegistry. After that, attempting to
 change the worker class will raise ArgumentError.