The only correct types allowed in starfish are ActiveRecord and File,
MailQueue is not a correct type.
-Lucas
http://rufy.com/
David Smalley wrote:> I''m trying to use Starfish to process mail as per:
> http://tech.rufy.com/2006/08/how-i-sent-emails-10x-faster-than.html
>
> My starfish file currently looks like
>
> ------------------
>
> require ''config/environment''
> require ''mail_queue''
> require ''email_sender''
>
> server do |map_reduce|
> map_reduce.type = MailQueue
> map_reduce.conditions = "sent_at IS NULL"
> end
>
> client do |mail_queue|
> mail_queue.dispatch_queue_item
> end
>
> ------------------
>
> It''s giving me an error:
> mail_queue_process.rb:13: undefined method `dispatch_queue_item''
for
> #<Array:0x34f26f0> (NoMethodError)
>
> So it looks like the object map_reduce is retrieving is an array rather
> than an ActiveRecord object "MailQueue".
>
> Where am I going wrong? There doesn''t seem to be a great deal of
> documentation on Starfish.
>
> David
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---