tobi / delayed_job

Database backed asynchronous priority queue -- Extracted from Shopify
http://tobi.github.com/delayed_job
MIT License
2.15k stars 1.25k forks source link

NameError (uninitialized constant Delayed::Job): #53

Open vanboom opened 12 years ago

vanboom commented 12 years ago

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!

justinwiley commented 12 years ago

+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.

chagel commented 12 years ago

+1 when gem update delayed_job 2.1.4 to 3.0.0

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

charles-luv commented 12 years ago

+1 when gem update

betamatt commented 12 years ago

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

joemsak commented 12 years ago

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

maedi commented 12 years ago

+1 for linking to the new source

jjb commented 12 years ago

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

jpatokal commented 12 years ago

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).

fholgado commented 12 years ago

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

damien commented 12 years ago

@jpatokal Worked for me, thanks!

lesonapt commented 11 years ago

Thanks @jpatokal . it worked

eddiefisher commented 9 years ago

+1

gabrieltong commented 9 years ago

Thanks @jpatokal