delayed_job icon indicating copy to clipboard operation
delayed_job copied to clipboard

NameError (uninitialized constant Delayed::Job):

Open vanboom opened this issue 13 years ago • 13 comments

I'm getting this error when using the delayed_job 3.0.0 gem...

NameError (uninitialized constant Delayed::Job):

Everything works great when I force delayed_job, 2.1.4 in my Gemfile.

I'm using rails 3.1.1.

Thanks for a great gem!

vanboom avatar Jan 07 '12 08:01 vanboom

+1, I'm seeing this as well after moving from 2.1.4 to 3.0.0. The exception is triggered when using the "delay" proxy, as in: article.delay.update_comments. I tried using the "send_later" form as per the documentation, but that triggers deprecation warnings.

justinwiley avatar Jan 09 '12 03:01 justinwiley

+1 when gem update delayed_job 2.1.4 to 3.0.0

NameError (uninitialized constant Delayed::DelayProxy::Job):

chagel avatar Jan 19 '12 04:01 chagel

+1 when gem update

charles-luv avatar Jan 19 '12 05:01 charles-luv

2.0 and higher versions of DelayedJob don't come from this repository. Try here: https://github.com/collectiveidea/delayed_job

betamatt avatar Jan 19 '12 16:01 betamatt

Request to have this source's description and/or readme to link to the new official source

joemsak avatar Feb 03 '12 23:02 joemsak

+1 for linking to the new source

maedi avatar Mar 16 '12 11:03 maedi

I submitted a patch to the readme for this: https://github.com/tobi/delayed_job/pull/50/

jjb avatar Mar 27 '12 00:03 jjb

So for others who just want to fix this issue, the key is to simply replace gem 'delayed_job' in your Gemfile with this:

gem 'delayed_job_active_record'

Or if you happen to be using Mongoid:

gem 'delayed_job_mongoid'

These will pull in the latest delayed_job with its dependencies, and everything should Just Work(tm).

jpatokal avatar Apr 03 '12 23:04 jpatokal

@jpatokal thanks for the fix, worked like a charm :)

fholgado avatar Apr 04 '12 14:04 fholgado

@jpatokal Worked for me, thanks!

damien avatar May 15 '12 23:05 damien

Thanks @jpatokal . it worked

lesonapt avatar Sep 20 '13 03:09 lesonapt

+1

eddiefisher avatar Dec 12 '14 11:12 eddiefisher

Thanks @jpatokal

gabrieltong avatar Jan 10 '15 09:01 gabrieltong