I solved this. Apparently there is an issue with delayed_job loading.
See here:

http://groups.google.com/group/delayed_job/browse_thread/thread/19dc6207a455029d/e776959275325763?lnk=gst&q=uninitialized+constant#e776959275325763

Note that putting the recommended 'Delayed::Worker.backend
= :active_record'in initializers/ doesn't work in this case as they
are run *after* the plug-ins are loaded. I just added it to the
repeated_job plugin's init.rb before it creates the job and everything
works now.

Russell.


On Aug 5, 6:09 pm, David Dollar <da...@heroku.com> wrote:
> Make sure the delayed_job plugin has been pushed to your app (that there is 
> no .git subdirectory inside it masking the files)
>
> You can try to clone your app from heroku into /tmp to see a pristine state 
> of what is in Heroku's repo.
>
> cd /tmp
> git clone g...@heroku.com:myapp.git
>
> On Aug 5, 2010, at 11:56 AM, Russell Quinn wrote:
>
>
>
> > I'm trying to get these two things working together. Delayed::Job is
> > installed, has the migrations and there's a background worker running,
> > etc. However, Repeated::Job can't find it on start-up. I've tried
> > explicitly setting the plugin load order in Rails (although they're
> > alphabetically correct anyway,) but this doesn't help.
>
> > Does anyone have any ideas? Here are my logs from straight after a
> > slug launch. Both canary-1684341.log and dj-1891287.log complain about
> > Repeated::Job (erroneously called Repeated::Cron in the error message
> > from the plugin's init.rb) not finding Background::Job.
>
> > Thanks,
>
> > Russell.
>
> > ---------
>
> > ==> exceptional.log <==
> > # Logfile created on Thu Aug 05 08:50:01 -0700 2010 by logger.rb
> > [INFO] (init.rb:18) Thu Aug 05 15:50:01 UTC 2010 - Loading Exceptional
> > for 2.3.8
>
> > ==> newrelic_agent.log <==
> > # Logfile created on Thu Aug 05 08:50:02 -0700 2010 by logger.rb
> > [08/05/10 08:50:02 -0700 railgun64.30863 (8200)] INFO : Dispatcher:
> > thin
> > [08/05/10 08:50:02 -0700 railgun64.30863 (8200)] INFO : Application:
> > XXXXX-XXXXXX
> > [08/05/10 08:50:02 -0700 railgun64.30863 (8200)] INFO : New Relic RPM
> > Agent 2.12.3 Initialized: pid = 8200
> > [08/05/10 08:50:02 -0700 railgun64.30863 (8200)] INFO : Agent Log
> > found in /disk1/home/slugs/232258_d8f7c76_6525/mnt/log/
> > newrelic_agent.log
>
> > ==> production.log <==
> > # Logfile created on Thu Aug 05 08:50:01 -0700 2010
> > ==> canary-1684341.log <==
> > Exception encountered, Repeated::Cron not loaded
> > uninitialized constant Delayed::Job
> > ** [NewRelic] New Relic RPM Agent 2.12.3 Initialized: pid = 8200
> > ** [NewRelic] Agent Log found in /disk1/home/slugs/232258_d8f7c76_6525/
> > mnt/log/newrelic_agent.log
> >>> Thin web server (v1.2.6 codename Crazy Delicious)
> >>> Maximum connections set to 1024
> >>> Listening on 0.0.0.0:3693, CTRL+C to stop
>
> > ==> production.log <==
> > # Logfile created on Thu Aug 05 08:50:11 -0700 2010
> > ==> dj-1891287.log <==
> > (in /disk1/home/slugs/232258_d8f7c76_6525/mnt)
> > Exception encountered, Repeated::Cron not loaded
> > uninitialized constant Delayed::Job
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Heroku" group.
> > To post to this group, send email to her...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > heroku+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://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 her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to