[delayed_job] MissingSourceFile

61 views
Skip to first unread message

Maechi

unread,
Apr 14, 2010, 8:33:33 AM4/14/10
to delayed_job
On Apr 14, 2010, at 7:13 AM, Markus Häcki wrote:

Hi Brandon,

When i run rake jobs:work the following error message appears:

*** Starting job worker localhost pid:79949
rake aborted!
uninitialized constant Delayed::Job
What did I do wrong?

Markus

Am 14.04.2010 um 13:28 schrieb Brandon Keepers:

Theres a bug in the latest version where it doesn't get properly
initialized when using the rake task. If you create a file in config/
initializers and put the follow in it, the error should go away:

Delayed::Worker.backend = :actvie_record

Brandon

----------------

When I enter that sentence I cant even start the server...

in `gem_original_require': no such file to load -- delayed/backend/
actvie_record (MissingSourceFile)

any ideas?


--
Subscription settings: http://groups.google.com/group/delayed_job/subscribe?hl=en

Brandon Keepers

unread,
Apr 16, 2010, 9:50:38 AM4/16/10
to delay...@googlegroups.com

On Apr 14, 2010, at 8:33 AM, Maechi wrote:

> When I enter that sentence I cant even start the server...
>
> in `gem_original_require': no such file to load -- delayed/backend/
> actvie_record (MissingSourceFile)
>
> any ideas?

You must not have delayed_job 2.0. Do you have a stack trace to go with that?

Brandon

Menno van der Sman

unread,
Apr 16, 2010, 10:29:08 AM4/16/10
to delay...@googlegroups.com
Are you sure you spelled active_record right in your initializer? The
example/trace you posted has it spelled wrong.

Cheers,

Menno

Maechi

unread,
Apr 17, 2010, 4:16:13 AM4/17/10
to delayed_job
Thanks, that was it. I didn't check the statement whether it is
correct...

Delayed::Worker.backend = :active_record

That way it works!
Thanks
Markus
Reply all
Reply to author
Forward
0 new messages