there's a comment to one of the answers that mentions thread safety.

changing the environments\production.rb file

config.threadsafe!

to

config.threadsafe! unless $rails_rake_task

appears to have fixed my problem. Thx for your replies.

On Apr 27, 11:10 am, Jeff Schmitz <[email protected]> wrote:
> The link you provided was about eager loading, not thread safety.
>
> The only way I can make it jive with your earlier message is that the
> require of Authlogic from Event is failing
>
> maybe you can run with --trace?
>
> On Wed, Apr 27, 2011 at 10:17 AM, Daz <[email protected]> wrote:
> > After more searching, I have finally come across this:
>
> >http://stackoverflow.com/questions/4300240/rails-3-rake-task-cant-fin...
> > - which provided the hint that the problem is actually due to having
> > the production environment configured to be thread safe. Since the
> > cron would work prior to adding the registration/login/password
> > reminder, I was lead in the direction of Authlogic as the root of the
> > problem...
>
> > Now the question is: Should I not have the app configured to be thread
> > safe? or is the thread safe configuration combining w/ something else
> > to cause the cron problem?
>
> > On Apr 27, 7:41 am, Jeff Schmitz <[email protected]> wrote:
> > > Confused how Authlogic, usually found in a controller, could be a part of
> > > this.
>
> > > Event.send_reminders is not using authentication, is it?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Heroku" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/heroku?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to